plot(p, type="h", main="software-converted profile and peak centroids", xlab=expression(M/z), ylab="abundance")
points(c)
END
}
}
}
__END__
=head1 NAME
uf-scan - examine scan data in a single MS scan
=head1 SYNOPSIS
uf-scan [options] file
Options:
-d[ump] dump the packet header (-d); dump the header and the profile (-dp)
-e[xtract] extract the entire scan data as a binary chunk
-l[ist] list the called peaks [required]
-p[rofile] print the scan profile as a 2-column table [required]
-plot plot the profile (along with the called peaks, if available) [required]
-v convert f -> M/z [requires: -p]
-z add empty bins [requires: -p]
-n[umber] <n:+i> select scan number <n> [required]
-mz <low:+n> .. <high:+n> limit the plot to the range of M/z values between <low> and <high> [requires: -plot]
<file> input file [required]
=head1 OPTIONS
=over 4
=item B<-help>
Print a brief help message and exits.
=item B<-l[ist]>
Get the peak list from the scan number B<-n>, if they are available. If the called peaks are not present, uf-scan will print a message to that effect and exit.
=item B<-p[rofile]>
Prints the scan profile for scan number B<-n>, if it is available. If the profile is not present, uf-scan will print a message to that effect and exit.
=item B<-plot>
This option generates an R script to plot the profile. Prints the scan profile for scan number B<-n>, if it is available. If the profile is not present, uf-scan will print a message to that effect and exit.
=item B<-n[umber]>
Gives the number of a single scan to process
=item B<-e[xtract]>
Used with either B<-l> or B<-p>, this option option clips the binary data chunk corresponding to either the peak list or to the scan profile and sends it to STDOUT.
=back
=head1 DESCRIPTION
B<uf-scan> can be used to list or plot the scan data for a single scan. The B<-profile> option instructs B<uf-scan> to print the profile data, the B<-list> option lists the peaks, and the B<-plot> option writes an R script to plot the profile and peak centroids, if both kinds of data are present in the raw file, or just the profile if the centroids are not present.
Options B<-profile>, B<-list> and B<-plot> are mutually exclusive.
To convert the raw scan data into M/z values, use the B<-v> option.
Option B<-z> fills the gaps between the profile peaks with zeroes, to create a continuous table.
=head1 SEE ALSO
Finnigan::PacketHeader
Finingan::Profile
Finingan::Peaks
Finnigan::Scan
L<uf-mzxml>
=head1 EXAMPLES
=over 4
=item Print all raw profile bins in the 1st scan:
uf-scan -p -n 1 sample.raw
=item Extracts the entire scan profile in the binary form:
uf-scan -ep -n 1 sample.raw
=item Same as above, except the bin values will be converted into M/z:
uf-scan -pv -n 1 sample.raw
=item Same as above, but in addition, all empty bins are wirtten out as well:
uf-scan -pvz -n 1 sample.raw
=item Print the list of centroids in the 1st scan:
uf-scan -l -n 1 sample.raw
Note that B<uf-scan> does not calculate the peak centroids from the
profile; it only lists the existing centroids if they are present.
=item This command will call R to plot the profile in the given range of M/z values: