How to use bowtie2, reporting only the chromosomal coordinate
1
0
Entering edit mode
3.5 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 • 501 views
ADD COMMENT
1
Entering edit mode
3.5 years ago
GenoMax 142k

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: 1249 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