Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • How can I extract each APAsite possibility from this table?

    Hello,

    I have an output from APATrap package, which gives back the predicted APA sites from samples. I need to make a list from all the possibles APAs to cross it with miRNAs database and get known if there is a match. The problem is a have a huges lists from 16 samples, and I need a way to automatize this task for reproducibility.

    I have this summed up table:

    Predicted_APA.TOTAL Loci.TOTAL

    41867799,41867388,41866990 chr17:41866927-41867904

    And I need something like this:

    CHR Loci.UTR.TOTAL Locus initial Locus Final

    chr17 41866927-41867799 41866927 41867799
    chr17 41866927-41867388 41866927 41867388
    chr17 41866927-41866990 41866927 41866990

    Do you know any tip or clue to do it for 16 samples with 1000 results each one?

    Thanks in advance, and sorry if my question isn't appropriate. I will answer any question for further people in the same situation.
    Beginner @ RNA-Seq, R programming, Linux, Python.-

    Please be patients!

  • #2
    I got this answer from another forum, so I add it here in case someone needs it.

    input:
    $cat test.txt

    Predicted_APA.TOTAL Loci.TOTAL
    41867799,41867388,41866990 chr17:41866927-41867904
    output:
    $awk -v FS='[-:\t]' -v OFS="\t" ' NR != 1 {split($1,a,","); for (i in a) {print $2,$3"-"a[i],$3,a[i]}}' test.txt

    chr17 41866927-41867799 41866927 41867799
    chr17 41866927-41867388 41866927 41867388
    chr17 41866927-41866990 41866927 41866990
    Beginner @ RNA-Seq, R programming, Linux, Python.-

    Please be patients!

    Comment

    Latest Articles

    Collapse

    • noor121
      Reply to Latest Developments in Precision Medicine
      by noor121
      Qadri offers efficient online services designed for students and staff of University Targu Mures Medical Campus Hamburg. We streamline your academic and administrative processes for a hassle-free experience.

      VIsit us:
      https://qadri-international.com/univ...s-hamburg-umch...
      Today, 09:33 PM
    • 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,...
      Yesterday, 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
    96 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 10-01-2024, 07:10 AM
    0 responses
    107 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 09-30-2024, 08:33 AM
    1 response
    110 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