Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 267 Bytes

clever_oneliners.md

File metadata and controls

10 lines (6 loc) · 267 Bytes

Clever One Liners

Extract reads in fastq format that maps to a specific contig:

samtools view -h -b mapping.bam contig_id | bamtools convert -format fastq > contig_id.fastq

Count number of sequences in a fasta file:

grep -c '^>' seqs.fa