Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • using bioperl to parse genome based on basepair location

    Hello all
    I have a genome that I am looking to parse a genome based on another file that has a name associated with the coordinates of the specific name in the genome of my species (for this purpose I will just use the first line of the fasta file of the genome)

    My coordinate file looks like the lines below
    name1 20 35
    name2 35 40
    name2 1 4
    The genome file looks like the one below
    GL849905.1 dna:scaffold:GL849905.1:1:5315331:1 REF
    TTATATTCATATATTTATATATATATATATATATATTATATATACACACACATATCCAGATACAGGCTCATAAACATGCATACACGTGTGCATATACCATGCTAAATTCGCACAAATACATATACGAATACACATACCGCACTGTGCCTTTACATATATAGAAACGTACGCATATTTGACTCACGCGCATACACACAATGCCTGCACACACACATACCTACATAATAAACATAGACTGAGATTTAGGACCAGAACTAAAGGCTCAATAAGCATTTATTAAGCACCTACAGCATGCCAAAC
    I am new to using bioperl but i know that you can implement
    $string = $seq_obj->subseq(20,35)
    to extract that specific sequence, my problem is I am working on a much bigger scale and with many more names and locations. So I know I need to open one file (the one with the names and coordinates) to loop through and substitute for the 20, 35 each time but I don't know how to accomplish this through bioperl. I can extract one string based on one location but implementing it on a grander scale is giving me problems.

    Cheers
    Last edited by ninja_help; 08-06-2015, 02:15 PM.

  • #2
    BioPerl is great, but unless this is just one small task in the midst of several things you want to do with these sequences using BioPerl, I would recommend you turn your coordinate file into BED3 format (watch the coordinates!) and use the bedtools getfasta command to extract the sequences. It is fast and you are very close to being done already.

    Comment


    • #3
      thanks for the reply @dgscofield

      by BED3 format do you mean this under the BED format section?

      Comment


      • #4
        That is correct. Getfasta description is here: http://bedtools.readthedocs.org/en/l.../getfasta.html

        Comment


        • #5
          I have another question regarding the BED format (my apologies for so many questions)
          I dont know what scaffold the locations are located on, would that impair me from using BED
          since they require scaffold or chromosome number?
          the names of specific sequences and coordinates are associated with each other, but aren't the actual scaffold within the genome.
          Last edited by ninja_help; 08-07-2015, 11:14 AM.

          Comment

          Latest Articles

          Collapse

          • seqadmin
            Advanced Tools Transforming the Field of Cytogenomics
            by seqadmin


            At the intersection of cytogenetics and genomics lies the exciting field of cytogenomics. It focuses on studying chromosomes at a molecular scale, involving techniques that analyze either the whole genome or particular DNA sequences to examine variations in structure and behavior at the chromosomal or subchromosomal level. By integrating cytogenetic techniques with genomic analysis, researchers can effectively investigate chromosomal abnormalities related to diseases, particularly...
            09-26-2023, 06:26 AM
          • seqadmin
            How RNA-Seq is Transforming Cancer Studies
            by seqadmin



            Cancer research has been transformed through numerous molecular techniques, with RNA sequencing (RNA-seq) playing a crucial role in understanding the complexity of the disease. Maša Ivin, Ph.D., Scientific Writer at Lexogen, and Yvonne Goepel Ph.D., Product Manager at Lexogen, remarked that “The high-throughput nature of RNA-seq allows for rapid profiling and deep exploration of the transcriptome.” They emphasized its indispensable role in cancer research, aiding in biomarker...
            09-07-2023, 11:15 PM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, Yesterday, 09:36 AM
          0 responses
          8 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 10-02-2023, 07:14 AM
          0 responses
          15 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 09-29-2023, 09:38 AM
          0 responses
          16 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 09-27-2023, 06:57 AM
          0 responses
          16 views
          0 likes
          Last Post seqadmin  
          Working...
          X