Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Merging tophat2 outputs for tophat-fusion

    Hello Tophat users,

    I'm having some trouble getting tophat-fusion-post to work with my data. Running a full lane of RNA-seq data resulted in failures at the joining segments step, so I ran each lane split in two, (ie sample1.1 and sample1.2) This worked well, but now I have two unique outputs for every 1 sample.

    I attempted to cat together fusions.out from both outputs in a new directory (sample1.3) and then do a sort using the command below:

    Code:
    cat fusions.out | tr "-" "\t" | sed 's/chr/chr /g' | sort -n -b -k 2 -k 4 -k 5 -k 6 | sed 's/chr /chr/g' | sed 's/\t/-/' > fusions.out1 ; cp fusions.out1 fusions.out
    This seems to work, except it puts X and Y ahead of 1 which I didn't think would be a problem. However, when I run tophat-fusion-post I get an error message:

    Code:
    tophat-fusion-post -p 8 --num-fusion-reads 1 --num-fusion-pairs 2 --num-fusion-both 5 /bowtie/bowtie-0.12.8/hg19/hg19
    
    
    [Mon Aug 13 16:41:08 2012] Beginning TopHat-Fusion post-processing run (v2.0.3)
    -----------------------------------------------
    [Mon Aug 13 16:41:08 2012] Extracting 23-mer around fusions and mapping them using Bowtie
            samples updated
    
    Mon Aug 13 17:07:46 2012] Filtering fusions
            Processing: tophat_sample01.1/fusions.out
            Processing: tophat_sample01.2/fusions.out
            Processing: tophat_sample01.3/fusions.out
    Traceback (most recent call last):
      File "/tophat2/tophat-2.0.3.Linux_x86_64/tophat-fusion-post", line 2083, in <module>
        sys.exit(main())
      File "/tophat2/tophat-2.0.3.Linux_x86_64/tophat-fusion-post", line 2054, in main
        filter_fusion(bwt_idx_prefix, params)
      File "/tophat2/tophat-2.0.3.Linux_x86_64/tophat-fusion-post", line 695, in filter_fusion
        filter_fusion_impl(fusion_file, refGene_list, ensGene_list, seq_chr_dic, fusion_gene_list)
      File "/tophat2/tophat-2.0.3.Linux_x86_64/tophat-fusion-post", line 488, in filter_fusion_impl
        if abs(int(left)) + abs(int(right)) > 2000:
    ValueError: invalid literal for int() with base 10: ''
    Has anyone had to merge separated tophat outputs? Any ideas why I'm getting this error? Does tophat-fusion-post rely on any files besides fusions.out?

    Thanks in advance.

  • #2
    Sorry folks, this was just a dumb error on my part. I was inadvertently changing fusions.out when I sorted it. Here is better code for sorting, if anyone wants it.

    Code:
    cat fusions.out | sed 's/-/\t/' | sed 's/chr/chr /g' | sort -n -b -k 2 -k 4 -k 5 -k 6 | sed 's/chr /chr/g' | sed 's/\t/-/' > fusions.out1 ; cp fusions.out1 fusions.out ; rm fusions.out1

    Comment

    Latest Articles

    Collapse

    • seqadmin
      Advancing Precision Medicine for Rare Diseases in Children
      by seqadmin




      Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
      12-16-2024, 07:57 AM
    • seqadmin
      Recent Advances in Sequencing Technologies
      by seqadmin



      Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

      Long-Read Sequencing
      Long-read sequencing has seen remarkable advancements,...
      12-02-2024, 01:49 PM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, 12-17-2024, 10:28 AM
    0 responses
    33 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 12-13-2024, 08:24 AM
    0 responses
    49 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 12-12-2024, 07:41 AM
    0 responses
    34 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 12-11-2024, 07:45 AM
    0 responses
    46 views
    0 likes
    Last Post seqadmin  
    Working...
    X