Skip to content

Commit 34aa547

Browse files
committed
compartment code mini fix
1 parent 7ba41fb commit 34aa547

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

scripts/Snakefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ SITE_POS = BIN + "/../annotation/juicebox/site_pos/"+ GENOME + "_" + RES_ENZYME
3838
GENOME_FEATURE = BIN + "/../annotation/genome_features/"+ GENOME + \
3939
"." + RES_ENZYME + "." + str(BIN_SIZE) + ".gnf"
4040

41-
TSS_DICT = {"hg19":BIN + "../annotation/TSSs/hg19.gencode.v19.annotation.transcripts.tss10k.bed"}
42-
TSS = TSS_DICT[GENOME]
41+
#TSS_DICT = {"hg19":BIN + "../annotation/TSSs/hg19.gencode.v19.annotation.transcripts.tss10k.bed"}
42+
#TSS = TSS_DICT[GENOME]
4343

4444
## read the chromosome information.
4545
CHR = []
@@ -71,7 +71,7 @@ rule vanilla:
7171
# expand("{sample}/{sample}.norm.DI.TAD",sample=SAMPLES),
7272
expand("{sample}/{sample}.norm.DI.bedgraph",sample=SAMPLES),
7373
expand("{sample}/{sample}.insulation.bedgraph",sample=SAMPLES),
74-
expand("{sample}/{sample}.PC1.bedgraph",sample=SAMPLES),
74+
# expand("{sample}/{sample}.PC1.bedgraph",sample=SAMPLES),
7575

7676
rule valid_pairs:
7777
input:

scripts/calc_PC1.r

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
suppressMessages(require(data.table))
33
suppressMessages(require(GenomicRanges))
44
a=fread(commandArgs(trailing=T)[1],skip=1)
5+
a[is.na(a)] = 0
56
alist = as.list(a)
67

78
# correlation matrix

0 commit comments

Comments
 (0)