Permalink
Please sign in to comment.
Showing
with
27 additions
and 71 deletions.
- +9 −2 RES-Scanner/RES-Scanner_identification/RES-Scanner_identification.pl
- +0 −6 RES-Scanner/RES-Scanner_identification/bin/Amino_acid_change.pl
- +9 −11 RES-Scanner/RES-Scanner_identification/bin/RNA_edit_site_table.pl
- +1 −1 RES-Scanner/RES-Scanner_identification/bin/bigTable.pl
- +1 −1 RES-Scanner/RES-Scanner_identification/bin/filter_abnormal_alignment_forBWA.pl
- +7 −7 RES-Scanner/RES-Scanner_identification/bin/filter_edit_site_table.pl
- +0 −5 RES-Scanner/RES-Scanner_identification/bin/findOverlap.pl
- +0 −5 RES-Scanner/RES-Scanner_identification/bin/findOverlap_sameStrand.pl
- +0 −33 RES-Scanner/RES-Scanner_identification/bin/gtf2gff.pl
- BIN testData/fastq/DNA/{DNA_Ae322_gynes/DNA_Ae322_gynes_1.fq.gz → DNA_gynes/DNA_gynes_1.fq.gz}
- BIN testData/fastq/DNA/{DNA_Ae322_gynes/DNA_Ae322_gynes_2.fq.gz → DNA_gynes/DNA_gynes_2.fq.gz}
- BIN ...e322_large_workers/DNA_Ae322_large_workers_1.fq.gz → DNA_large_workers/DNA_large_workers_1.fq.gz}
- BIN ...e322_large_workers/DNA_Ae322_large_workers_2.fq.gz → DNA_large_workers/DNA_large_workers_2.fq.gz}
- BIN ...e322_small_workers/DNA_Ae322_small_workers_1.fq.gz → DNA_small_workers/DNA_small_workers_1.fq.gz}
- BIN ...e322_small_workers/DNA_Ae322_small_workers_2.fq.gz → DNA_small_workers/DNA_small_workers_2.fq.gz}
- BIN ...q/RNA/{RNA_Ae322_gyne_heads/RNA_Ae322_gyne_heads_1.fq.gz → RNA_gyne_heads/RNA_gyne_heads_1.fq.gz}
- BIN ...q/RNA/{RNA_Ae322_gyne_heads/RNA_Ae322_gyne_heads_2.fq.gz → RNA_gyne_heads/RNA_gyne_heads_2.fq.gz}
- BIN ...ads/RNA_Ae322_large_worker_heads_1.fq.gz → RNA_large_worker_heads/RNA_large_worker_heads_1.fq.gz}
- BIN ...ads/RNA_Ae322_large_worker_heads_2.fq.gz → RNA_large_worker_heads/RNA_large_worker_heads_2.fq.gz}
- BIN ...ads/RNA_Ae322_small_worker_heads_1.fq.gz → RNA_small_worker_heads/RNA_small_worker_heads_1.fq.gz}
- BIN ...ads/RNA_Ae322_small_worker_heads_2.fq.gz → RNA_small_worker_heads/RNA_small_worker_heads_2.fq.gz}
| @@ -1,33 +0,0 @@ | ||
| -#!/usr/bin/perl -w | ||
| -use strict; | ||
| -die "Usage: <gtf file>\n" unless @ARGV == 1; | ||
| - | ||
| -my %cdsPos; | ||
| -if ($ARGV[0] =~ /\.gz$/) { | ||
| - open IN, "gunzip -c $ARGV[0] | "; | ||
| -} else { | ||
| - open IN, $ARGV[0]; | ||
| -} | ||
| -while (<IN>) { | ||
| - chomp; | ||
| - next if /^#/; | ||
| - my @info = split /\t/; | ||
| - if ($info[1] !~ "pseudogene" && $info[2] eq "CDS") { | ||
| - die "Warning: Unrecognized gff format, 'transcript_id' is missing." unless $info[-1] =~ /transcript_id\s+"(\S+)\s?";/; | ||
| - my $transcript_id = $1; | ||
| - my ($geneID)= $info[-1] =~ /gene_id\s+"(\S+)\s?";/; | ||
| - ($info[3], $info[4]) = sort {$a <=> $b}($info[3], $info[4]); | ||
| - push @{$cdsPos{$transcript_id}}, [$info[3], $info[4], $info[0], $info[6], $info[7], $geneID]; | ||
| - } | ||
| -} | ||
| -close IN; | ||
| - | ||
| -foreach my $transcript (keys %cdsPos) { | ||
| - @{$cdsPos{$transcript}} = sort {$a->[0] <=> $b->[0]} @{$cdsPos{$transcript}}; | ||
| - my ($transcript_bg, $transcript_ed, $chr, $strand, $geneID) = ($cdsPos{$transcript}->[0]->[0], $cdsPos{$transcript}->[-1]->[1], $cdsPos{$transcript}->[0]->[2], $cdsPos{$transcript}->[0]->[3],$cdsPos{$transcript}->[0]->[5]); | ||
| - print "$chr\tensembl\tmRNA\t$transcript_bg\t$transcript_ed\t.\t$strand\t.\tID=$transcript;GeneID=$geneID\n"; | ||
| - foreach my $p (@{$cdsPos{$transcript}}) { | ||
| - my ($cds_bg, $cds_ed, $chr, $strand, $phase) = @$p; | ||
| - print "$chr\tensembl\tCDS\t$cds_bg\t$cds_ed\t.\t$strand\t$phase\tParent=$transcript;GeneID=$geneID\n"; | ||
| - } | ||
| -} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
0 comments on commit
226774c