-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Figure 4 of CRISPR MultiTargeter paper
- Loading branch information
Showing
7 changed files
with
117,140 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
x = c(0.975, 0.71, 0.51, 0.49) | ||
par(mar=c(7,20,6,1)) | ||
|
||
barplot(x, width = 1, names.arg = c("Genes with isoform-specific sgRNA sites", "Transcripts with isoform-specific sgRNA sites", "Sites in the sense strand", "Sites in the anti-sense strand"), horiz = TRUE, col = c(1,2,3,4), las=1, cex.names = 1.1, cex.axis = 1.2, xlim = c(0, 1)) | ||
rect(par("usr")[1],par("usr")[3],par("usr")[2],par("usr")[4],col = rgb(1, 1, 1, alpha=0.2)) |
Large diffs are not rendered by default.
Oops, something went wrong.
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,30 @@ | ||
|
||
read_fh = open("zebrafish_transcript_table.txt", 'r') | ||
|
||
alt_genes = {} | ||
|
||
for line in read_fh: | ||
# remove the newline | ||
line = line.strip('\n') | ||
|
||
# get the information on the gene and transcript ID | ||
(trID, geneID, seq) = line.split("\t") | ||
|
||
# record the number of transcripts are associated with any specific gene | ||
if geneID in alt_genes: | ||
alt_genes[geneID] += 1 | ||
else: | ||
alt_genes[geneID] = 1 | ||
|
||
|
||
# make a new file handle for writing | ||
outputFH = open('genes_with_alternative_transcripts.txt', 'w') | ||
|
||
# output the genes with multiple transcript isoforms | ||
for gene in alt_genes: | ||
if alt_genes[gene] >= 2: | ||
outputFH.write(gene) | ||
outputFH.write('\n') | ||
|
||
|
||
outputFH.close() |
Oops, something went wrong.