![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Updated How to convert .txt file to .bed .GFF or .BAR file format, | forevermark4 | Bioinformatics | 2 | 06-30-2014 05:02 AM |
How to convert .txt file to .bed or .gff, How can we use chip seq data in R software | forevermark4 | Bioinformatics | 57 | 06-30-2014 05:01 AM |
Is there a BED file format validator? Does a BED file have to be sorted position? | LauraSmith | Bioinformatics | 3 | 05-21-2013 11:54 AM |
how to convert SAM file to BED or MUT | marufdu07 | General | 2 | 02-07-2012 02:20 AM |
How to convert eland file to BED format | huo | Bioinformatics | 1 | 01-19-2011 10:43 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
Junior Member
Location: Berkeley, CA Join Date: Jan 2010
Posts: 8
|
![]()
Hi all,
To locate the SNPs in a SNP.txt file to each of coding gene exons I need to convert the TXT to a bed file in order to use BEDTools. Is there any way to do is? or is there any way to get a SNP.bed output from samtools? Any inputs are highly appreciated, thank! Ling |
![]() |
![]() |
![]() |
#2 |
Senior Member
Location: 41°17'49"N / 2°4'42"E Join Date: Oct 2008
Posts: 323
|
![]()
Read this thread, you'll find the solution there:
http://seqanswers.com/forums/showthread.php?t=2446
__________________
-drd |
![]() |
![]() |
![]() |
#3 |
Junior Member
Location: Berkeley, CA Join Date: Jan 2010
Posts: 8
|
![]()
Hi Drio,
Thank you for your message. But it seemed to me those were only for converting a sam/bam to a bed file. I am seeking ways to convert the output (.txt) from samtools pileup to a bed file, which may not make sense, sorry. Best, Ling |
![]() |
![]() |
![]() |
#4 |
Senior Member
Location: 41°17'49"N / 2°4'42"E Join Date: Oct 2008
Posts: 323
|
![]()
Right, sorry. Why don't you write a quick script yourself?
__________________
-drd |
![]() |
![]() |
![]() |
#5 |
Member
Location: LONDON, UNITED KINGDOM Join Date: Jan 2009
Posts: 44
|
![]()
You could also use GenomeIntervals2BED.py script available within the SeqGI framework.
Have a look: http://seqgi.sourceforge.net/Genomeintervals2bed.html |
![]() |
![]() |
![]() |
#6 | |
Member
Location: Milan Join Date: May 2013
Posts: 40
|
![]()
@inesdesantiago
I have a situation where I have output of SNPs from VarScan. I see the varscan outputs LOH( both as SNP and INDELS LOH). Now for INDELS its fairly easy to make a bed format file. But for SNP -LOH if I want to make the bed file what should be the trick. I know that for a SNP the base which is changed can be either start of chromosome and the next base can be the stop site or the base that is a variant can be the stop coordinate and its previous base can be the start. however if you you have situation like below. How should this be performed? Can your tool make bed files from SNP-LOH regions from this kind of situation or always it is needed to supply the genomic intervals? Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Member
Location: Santiago, Chile Join Date: Oct 2013
Posts: 62
|
![]()
Sorry my ignorance but, can awk be useful for that?
Please post some lines of your input file and some lines of your expected output file. I may help you with a awk sentence. |
![]() |
![]() |
![]() |
#8 |
Member
Location: Milan Join Date: May 2013
Posts: 40
|
![]()
No I have already figured out a tool that works best for this.. the bedops tool has a function vcf2bed works fit to convert the scenario and I already performed that and also am familiar with awk as well. Infact I was more concerned if the conversion is 1 based or 0 based. But that issue is solved for me. Thanks a lot.
|
![]() |
![]() |
![]() |
Thread Tools | |
|
|