How to use bowtie2, reporting only the chromosomal coordinate
1
0
Entering edit mode
4.0 years ago
chloe • 0

I'm familiar with using bowtie2 to align sequence files to reference. But I want to get a simple report only showing the chromosomal coordinate. Such as chr4 \t 11111111111111 \t 33333333333333

Is there any way to do this?

Beforehand, I tried this command. bowtie2 -x genome_index -c CAACTCCAGTCCCAAATATGTAGCTGTT --very-sensitive

sequence alignment • 567 views
ADD COMMENT
1
Entering edit mode
4.0 years ago
GenoMax 147k

Aligners are going to generally output in SAM format. If you just need the chromosome and start position then you can pipe the output to awk and print the fields you need out.

bowtie2 -x genome -c CAACTCCAGTCCCAAATATGTAGCTGTT --very-sensitive | grep -v "^@" | awk -F "\t" '{OFS="\t"}{print $3,$4}'
ADD COMMENT
0
Entering edit mode

Thank you so much! It perfectly does work for me

ADD REPLY

Login before adding your answer.

Traffic: 1638 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6