Re: [Tutor] vcf_files and strings

2011-10-11 Thread Hs Hs
PM Subject: Re: [Tutor] vcf_files and strings Anna Olofsson wrote: Hi, I'm a beginner at Python and would really like some help in how to extract information from a vcf file. The attached file consists of a lot of information on mutations, this one though is just 2 rows and 10 columns

Re: [Tutor] vcf_files and strings

2011-10-11 Thread Alan Gauld
On 11/10/11 18:16, Hs Hs wrote: VCF - Variant Call Format ... Nothing special except that a genetics or any biologist will understand this - nothing special! The problem is that this list, being for beginners to Python, is a bit short on Geneticists and Biologists! :-) So you need to

Re: [Tutor] vcf_files and strings

2011-10-11 Thread Hs Hs
http://www.1000genomes.org/node/101 From: Alan Gauld alan.ga...@btinternet.com To: tutor@python.org Sent: Tuesday, October 11, 2011 1:52 PM Subject: Re: [Tutor] vcf_files and strings On 11/10/11 18:16, Hs Hs wrote: VCF - Variant Call Format

Re: [Tutor] vcf_files and strings

2011-10-09 Thread Anna Olofsson
Hi, I still don't know how to make a loop that makes it work for all the mutations. Best, Anna Date: Fri, 7 Oct 2011 13:17:07 -0700 From: ilhs...@yahoo.com Subject: Re: [Tutor] vcf_files and strings To: olofsson_anna...@hotmail.com; tutor@python.org if col[x] == 'missense':print col

Re: [Tutor] vcf_files and strings

2011-10-09 Thread Steven D'Aprano
Anna Olofsson wrote: Hi, I'm a beginner at Python and would really like some help in how to extract information from a vcf file. The attached file consists of a lot of information on mutations, this one though is just 2 rows and 10 columns (the real one has a lot more rows). What do you mean

[Tutor] vcf_files and strings

2011-10-07 Thread Anna Olofsson
Hi, I'm a beginner at Python and would really appreciate some help in how to extract information from a vcf file. The attached file consists of a lot of information on mutations, this one though is just 2 rows and 10 columns (the real one has a lot more rows). I want to extract the mRNA ID

Re: [Tutor] vcf_files and strings

2011-10-07 Thread Hs Hs
if col[x] == 'missense':     print col[withRefSeqID] hth From: Anna Olofsson olofsson_anna...@hotmail.com To: tutor@python.org Sent: Friday, October 7, 2011 12:12 PM Subject: [Tutor] vcf_files and strings Hi, I'm a beginner at Python and would really

[Tutor] vcf_files and strings

2011-10-05 Thread Anna Olofsson
Hi, I'm a beginner at Python and would really like some help in how to extract information from a vcf file. The attached file consists of a lot of information on mutations, this one though is just 2 rows and 10 columns (the real one has a lot more rows). I want to extract the mRNA ID only

Re: [Tutor] vcf_files and strings

2011-10-05 Thread Andreas Perstinger
On 2011-10-05 21:29, Anna Olofsson wrote: vcf file: 2 rows, 10 columns. The important column is 7 where the ID is, i.e. refseq.functionalClass=missense. It's a missense mutation, so then I want to extract refseq.name=NM_003137492, or I want to extract only the ID, which in this case is