Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the SamToFastq documentation #1920

Merged
merged 2 commits into from
Feb 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 deletions src/main/java/picard/sam/SamToFastq.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,17 @@

/**
* <p> Extracts read sequences and qualities from the input SAM/BAM file and writes them into
* the output file in Sanger FASTQ format. .
* the output file in Sanger FASTQ format.
* See <a href="http://maq.sourceforge.net/fastq.shtml">MAQ FASTQ specification</a> for details.
* This tool can be used by way of a pipe to run BWA MEM on unmapped BAM (uBAM) files efficiently.
* <p>In the RC mode (default is True), if the read is aligned and the alignment is to the reverse strand on the genome,
* the read's sequence from input sam file will be reverse-complemented prior to writing it to FASTQ in order restore correctly
* the original read sequence as it was generated by the sequencer.
* the read's sequence from input SAM file will be reverse-complemented prior to writing it to FASTQ
* in order restore correctly the original read sequence as it was generated by the sequencer.
* <p>Note: This tool works with both coordinate-sorted and name-sorted inputs. Although mates come with the
* same order in both FASTQ files, the behavior is different between coordinate-sorted versus name-sorted BAM files.
* Name-sorted BAM files will produce the very same FASTQs generated from the sequencer, whereas coordinate-sorted
* BAMs will result in a scrambled FASTQ file where mates match but the reads are not sorted by name.
* This may result in slightly different outcomes when used with non-deterministic mappers such as BWA.
* <br />
* <h4>Usage example:</h4>
* <pre>
Expand All @@ -81,13 +86,18 @@
@DocumentedFeature
public class SamToFastq extends CommandLineProgram {
static final String USAGE_SUMMARY = "Converts a SAM/BAM/CRAM file to FASTQ.";
static final String USAGE_DETAILS = " Extracts read sequences and qualities from the input SAM/BAM/CRAM file and writes them into" +
"the output file in Sanger FASTQ format." +
"See <a href=\"http://maq.sourceforge.net/fastq.shtml\">MAQ FASTQ specification</a> for details." +
static final String USAGE_DETAILS = "Extracts read sequences and qualities from the input SAM/BAM/CRAM file " +
"and writes them into the output file in Sanger FASTQ format. " +
"See <a href=\"http://maq.sourceforge.net/fastq.shtml\">MAQ FASTQ specification</a> for details. " +
"This tool can be used by way of a pipe to run BWA MEM on unmapped BAM (uBAM) files efficiently.</p>" +
"<p>In the RC mode (default is True), if the read is aligned and the alignment is to the reverse strand on the genome," +
"the read's sequence from input sam file will be reverse-complemented prior to writing it to FASTQ in order restore correctly" +
"the original read sequence as it was generated by the sequencer.</p>" +
"<p>In the RC mode (default is True), if the read is aligned and the alignment is to the reverse strand on the genome, " +
"the read's sequence from input SAM file will be reverse-complemented prior to writing it to FASTQ " +
"in order restore correctly the original read sequence as it was generated by the sequencer.</p>" +
"<p>Note: This tool works with both coordinate-sorted and name-sorted inputs. Although mates come with the " +
"same order in both FASTQ files, the behavior is different between coordinate-sorted versus name-sorted BAM files. " +
"Name-sorted BAM files will produce the very same FASTQs generated from the sequencer, whereas coordinate-sorted " +
"BAMs will result in a scrambled FASTQ file where mates match but the reads are not sorted by name. " +
"This may result in slightly different outcomes when used with non-deterministic mappers such as BWA.</p>" +
"<br />" +
"<h4>Usage example:</h4>" +
"<pre>" +
Expand Down
Loading