Skip to content

Commit ebeeff2

Browse files
authored
skip rows starting with #
1 parent d0f9c35 commit ebeeff2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

predict.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ def compute_effects(snpeffects, snpdists, snpstrands, all_models, maxshift=800,
143143
snpEffects.append(snp_temp)
144144

145145

146-
coor = pd.read_csv(args.coorFile,sep='\t',header=None)
146+
coor = pd.read_csv(args.coorFile,sep='\t',header=None,comment='#')
147147
coor = coor.iloc[index_start:index_end,:]
148148

149149
#Fetch the distance to TSS information
150-
gene = pd.read_csv(args.geneFile,sep='\t',header=None)
150+
gene = pd.read_csv(args.geneFile,sep='\t',header=None,comment='#')
151151
geneinds = pd.match(coor.iloc[:,0].map(str).str.replace('chr','')+' '+coor.iloc[:,1].map(str),
152152
gene.iloc[:,0].map(str).str.replace('chr','')+' '+gene.iloc[:,2].map(str))
153153
if np.any(geneinds==-1):

0 commit comments

Comments
 (0)