Search Result

Collapse
2 results in 0.0041 seconds.
Keywords
Members
Tags
fasta
  •  

  • pcamps
    started a topic Matching parts of lines in a file (python)

    Matching parts of lines in a file (python)

    I currently have a list of genes in a file. Each line has a chromosome with it's information. Such an entry appears as:

    NM_198212 chr7 + 115926679 115935830 115927071 11593344 2 115926679,'115933260', 115927221,'115935830',

    The sequence for the chromosome starts at base 115926679 and continues up to(but not including) base 115935830

    If we want the spliced sequence, we use the exons.The first extends from 11...
    See more | Go to post

  • How do I split a text file without stripping the character I'm splitting at?

    Hi everyone, I'm new to python and would like to split a FASTA (text) file into each different gene (separated by a ">"), randomly sample a certain number of the sequences, and print the result. I have the program almost working correctly, but for some reason text.split('>') strips all of the ">"s from the file. If there's some way I can either remove this strip or add back in the ">" character that would...
    See more | Go to post
    Last edited by bvdet; Nov 5 '10, 06:01 PM. Reason: Add code tags
Working...