Regions got skipped due to length
1
0
Entering edit mode
6 weeks ago
Muhammad • 0

i am using command "bedtools getfasta __.fa -bed ___.bed -fo __.fa " but some regions got skipped due to beyond length. What can be the solution for this? Thank you very much

Getfasta Bedtools • 228 views
ADD COMMENT
0
Entering edit mode
6 weeks ago

not tested:

samtools faidx in.fasta
awk '{printf("%s\t0\t%s\n",$1,$2);}' in.fasta.fai | sort -t $'\t' -k1,1 -k2,2 > bounds.bed
bedtools intersect  -a ___.bed -b bounds.bed > new.bed
"bedtools getfasta __.fa -bed new.bed -fo __.fa
ADD COMMENT

Login before adding your answer.

Traffic: 1420 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