Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

samtools extract sequence from bam file

# Basic syntax:
# For a BAM file:
samtools view file.bam | cut -f 10 > output.txt

# For a SAM file:
cut -f 10 file.sam > output.txt
Source by seqanswers.com #
 
PREVIOUS NEXT
Tagged: #samtools #extract #sequence #bam #file
ADD COMMENT
Topic
Name
7+6 =