how to get input file of closest-features a bed-format file
0
0
Entering edit mode
4.0 years ago
MEITUO ▴ 10

HI everyone!

i am trying to calculate the gene distance of assembly contigs by closest-features. but this tool requires a bed format input file. how can i get this bed-format file?

genome sequencing gene • 1.0k views
ADD COMMENT
0
Entering edit mode

What kind of data do you have? Could you please share more details?

ADD REPLY
0
Entering edit mode

metagenic data, the contigs after assembly

ADD REPLY
0
Entering edit mode

if you have the bam format you can use bedtools bamtobed (see here).

Then you can use bedtools closest (see here) to intersect the bed file obtained earlier with the features (also in bed). If you specify the -d flag, it will report the distance as well.

ADD REPLY
0
Entering edit mode

thanks! and is the bam file that the qc reads mapping back to assembly contig? do this need filter low mapped reads or just can use it directly after bwa or bowite??

ADD REPLY
0
Entering edit mode

That I didn't get it sorry... Please explain better what you mean. If you have doubts about what a bam file is, you should spend some time familiarizing with the file types used in bioinformatics. See here for a short description of the most common file types in bioinformatics.

ADD REPLY

Login before adding your answer.

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