Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ninja_help
    Junior Member
    • Aug 2015
    • 6

    #1

    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.
  • dgscofield
    Member
    • Nov 2010
    • 28

    #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

    • ninja_help
      Junior Member
      • Aug 2015
      • 6

      #3
      thanks for the reply @dgscofield

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

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

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

        Comment

        • ninja_help
          Junior Member
          • Aug 2015
          • 6

          #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

          • SEQadmin2
            Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
            by SEQadmin2



            Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

            Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
            ...
            10-14-2026, 09:55 AM
          • SEQadmin2
            New Genomics Technologies Take Aim at Long-Standing Limits
            by SEQadmin2


            Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

            We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
            ...
            09-28-2026, 10:25 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, Yesterday, 11:13 AM
          0 responses
          17 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, Yesterday, 10:48 AM
          0 responses
          18 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          36 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          42 views
          0 reactions
          Last Post SEQadmin2  
          Working...