mergelists: merge two or more NMRView peak lists

Usage:

mergelists -n list1 [list2 ...]

n is the number of dimensions per list

list1, list2 ... are the lists to be merged. They must have been exported from NMRView with "writepks list1 lst LPWB" (or LPBW) otherwise it won't work properly. Assignments with more than one word in them when they are exported from nmrview must have curly braces ("{}") around them

Description:

mergelists takes multiple NMRView lists and merges them into a single list.

The new list is returned to standard output. The new list has duplicate peaks removed and multiple assignments retained. Where a peak is assigned in one list and unassigned in another, the single assignment is kept, and the "?" for the unassigned peak removed.

Example:

mergelist -3 list1.lst list2.lst > newlist.lst will merge list1.lst and list2.lst into a new list called newlist.lst.