Skip to content

Commit

Permalink
Update HSCLO_GENCODE.R
Browse files Browse the repository at this point in the history
  • Loading branch information
tma1 authored Aug 14, 2024
1 parent c843505 commit 0a945cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion petagraph/code/preprocessing/HSCLO_GENCODE.R
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
for (i in 1:295559) {l <- floor(as.numeric(G[i,2])/1000)*1000; if (G[i,2]>l) {L[i,3] = paste("HSCLO"," ",G[i,6],".",l+1,"-",l+1000,sep = "")} else {L[i,3] = paste("HSCLO"," ",G[i,6],".",l-999,"-",l,sep = "")}}
#THis scripts creates GENCODE mapping of transcript and genes found in Petgraph to HSCLO nodes at 1kbp resolution
for (i in 1:295559) {l <- floor(as.numeric(G[i,2])/1000)*1000;
if (G[i,2]>l) {L[i,3] = paste("HSCLO"," ",G[i,6],".",l+1,"-",l+1000,sep = "")} else {L[i,3] = paste("HSCLO"," ",G[i,6],".",l-999,"-",l,sep = "")}}

0 comments on commit 0a945cf

Please sign in to comment.