-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Siddharth Annaldasula
committed
Feb 10, 2020
1 parent
3ac2192
commit bca7730
Showing
15 changed files
with
567 additions
and
139 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,2 @@ | ||
gene_symbol | ||
APP | ||
ABI2 | ||
DNMBP | ||
SEPTIN8 | ||
EPB41L5 | ||
SEPTIN6 | ||
TFDP2 | ||
ERBB2 | ||
RPS24 | ||
ZNRD2 | ||
COX11 | ||
ERGIC3 | ||
PFN2 | ||
NKAIN4 | ||
RPS24 |
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,59 @@ | ||
filename = snakemake.input[0] | ||
file = open(filename, "r") | ||
lines = file.readlines() | ||
file.close() | ||
|
||
class transcript: | ||
def __init__(self, tcons, idr, ips, ss8): | ||
self.tcons = tcons | ||
self.idr = idr | ||
self.ips = ips | ||
self.ss8 = ss8 | ||
self.pss = pss | ||
|
||
transcripts = dict() | ||
|
||
idr_lines = [] | ||
ips_lines = [] | ||
ss8_lines = [] | ||
pss_lines = [] | ||
|
||
for line in lines: | ||
if (line.startswith(">")): | ||
if (len(ips_lines) > 0): | ||
transcripts[tcons] = transcript(tcons, idr, ips, ss8) | ||
|
||
new = True | ||
idr_lines = [] | ||
ips_lines = [] | ||
ss8_lines = [] | ||
pss_lines = [] | ||
idr = False | ||
ips = False | ||
ss8 = False | ||
pss = False | ||
tcons = line[1:].strip().split("|")[0] | ||
|
||
|
||
if (line.startswith("#####IUPred2A Analysis")): | ||
idr = True | ||
elif (line.startswith("#####InterProScan")): | ||
ips = True | ||
idr = False | ||
elif (line.startswith("#####BrewerySS8 Analysis")): | ||
ss8 = True | ||
ips = False | ||
|
||
if (idr): | ||
idr_lines.append(line.strip()) | ||
elif (ips): | ||
ips_lines.append(line.strip()) | ||
elif (ss8): | ||
ss8_lines.append(line.strip()) | ||
|
||
transcripts[tcons] = transcript(tcons, idr, ips, ss8) | ||
|
||
|
||
|
||
|
||
print(transcripts) |
Oops, something went wrong.