-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added a topaht-fusion-post patch, in which the contig name bug #37 is fixed
- Loading branch information
Showing
10 changed files
with
98 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
--- tophat-fusion-post 2019-10-17 16:06:48.338589724 +0000 | ||
+++ tophat-fusion-post.new 2019-10-17 16:08:30.131237030 +0000 | ||
@@ -788,7 +788,7 @@ | ||
|
||
same = False | ||
for chr_coord in left_chrs: | ||
- chr, coord = chr_coord.split(':') | ||
+ chr, coord = chr_coord.rsplit(':', 1) | ||
coord = int(coord) | ||
if chr == chr2 and abs(coord - coord2) < max_intron_len: | ||
same = True | ||
@@ -798,7 +798,7 @@ | ||
continue | ||
|
||
for chr_coord in right_chrs: | ||
- chr, coord = chr_coord.split(':') | ||
+ chr, coord = chr_coord.rsplit(':', 1) | ||
coord = int(coord) | ||
if chr == chr1 and abs(coord - coord1) < max_intron_len: | ||
same = True | ||
@@ -1225,7 +1225,7 @@ | ||
if line[0] == '@': | ||
if line[1:3] == 'SQ': | ||
line = line[:-1].split('\t') | ||
- contig = line[1].split(':')[1] | ||
+ contig = line[1].split(':', 1)[1] | ||
if contig not in contigs: | ||
contigs[contig] = len(contigs) | ||
|
||
@@ -1533,7 +1533,7 @@ | ||
else: | ||
chr1 = value_str | ||
|
||
- chr1, chr1_coord = chr1.split(':') | ||
+ chr1, chr1_coord = chr1.rsplit(':', 1) | ||
chr1_left, chr1_right = chr1_coord.split('-') | ||
chr1_left, chr1_right = int(chr1_left), int(chr1_right) | ||
value_dic["chr1"] = chr1 | ||
@@ -1541,7 +1541,7 @@ | ||
value_dic["chr1_right"] = chr1_right | ||
|
||
if chr2: | ||
- chr2, chr2_coord = chr2.split(':') | ||
+ chr2, chr2_coord = chr2.rsplit(':', 1) | ||
chr2_left, chr2_right = chr2_coord.split('-') | ||
chr2_left, chr2_right = int(chr2_left), int(chr2_right) | ||
value_dic["chr2"] = chr2 | ||
@@ -1592,14 +1592,14 @@ | ||
exon_list = curr_transcript[-1] | ||
|
||
if type == "exon": | ||
- chr, chr_coord = fields[1].split(':') | ||
+ chr, chr_coord = fields[1].rsplit(':', 1) | ||
chr_left, chr_right = chr_coord.split('-') | ||
chr_left, chr_right = int(chr_left), int(chr_right) | ||
exon_list.append(["exon", chr, chr_left, chr_right]) | ||
else: | ||
fusion_left, fusion_right = fields[1].split(' ') | ||
- chr1, chr1_pos = fusion_left.split(':') | ||
- chr2, chr2_pos = fusion_right.split(':') | ||
+ chr1, chr1_pos = fusion_left.rsplit(':', 1) | ||
+ chr2, chr2_pos = fusion_right.rsplit(':', 1) | ||
|
||
chr1_pos, chr2_pos = int(chr1_pos), int(chr2_pos) | ||
exon_list.append(["fusion", chr1, chr1_pos, chr2, chr2_pos]) | ||
@@ -2865,7 +2865,7 @@ | ||
|
||
|
||
def get_version(): | ||
- return "2.1.0" | ||
+ return "2.1.0-cgpPatched" | ||
|
||
|
||
def main(argv=None): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters