You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working with a non-model organism whose genome was constructed at the scaffold level. How can I automatically name all scaffolds from my bam file using the command --chrom? Thank you!
The text was updated successfully, but these errors were encountered:
Hi, the --chrom option is used for pileup reads from BAM files by matching the input "chrom" names with the RNAME field (the third column) of each BAM (alignment) record. It should work in your case if the "scaffold" names are stored in the RNAME field of BAM records and also specified in --chrom option.
For now --chrom option can not automatically extract all chrom/scaffold names from BAM files. These names have to be manually specified, which should be straightforward, e.g., if your BAM file has been indexed (i.e., ".bai" file exists), then the list of chrom/scaffold names can be obtained with samtools idxstats <BAM file> | cut -f1 | tr '\n' ',' (need further check).
I am working with a non-model organism whose genome was constructed at the scaffold level. How can I automatically name all scaffolds from my bam file using the command --chrom? Thank you!
The text was updated successfully, but these errors were encountered: