Seqanswers Leaderboard Ad

Collapse

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
            Non-Coding RNA Research and Technologies
            by seqadmin




            Non-coding RNAs (ncRNAs) do not code for proteins but play important roles in numerous cellular processes including gene silencing, developmental pathways, and more. There are numerous types including microRNA (miRNA), long ncRNA (lncRNA), circular RNA (circRNA), and more. In this article, we discuss innovative ncRNA research and explore recent technological advancements that improve the study of ncRNAs.

            Nobel Prize for MicroRNA Discovery
            This week,...
            10-07-2024, 08:07 AM
          • seqadmin
            Recent Developments in Metagenomics
            by seqadmin





            Metagenomics has improved the way researchers study microorganisms across diverse environments. Historically, studying microorganisms relied on culturing them in the lab, a method that limits the investigation of many species since most are unculturable1. Metagenomics overcomes these issues by allowing the study of microorganisms regardless of their ability to be cultured or the environments they inhabit. Over time, the field has evolved, especially with the advent...
            09-23-2024, 06:35 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, 10-02-2024, 04:51 AM
          0 responses
          103 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 10-01-2024, 07:10 AM
          0 responses
          111 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 09-30-2024, 08:33 AM
          1 response
          114 views
          0 likes
          Last Post EmiTom
          by EmiTom
           
          Started by seqadmin, 09-26-2024, 12:57 PM
          0 responses
          20 views
          0 likes
          Last Post seqadmin  
          Working...
          X