@@ -67,15 +67,15 @@ if __name__ =='__main__':
67
67
# For machines without writable /scratch, default to creating a temp folder under /tmp
68
68
tmp_dir = tempfile .mkdtemp (dir = tmp_root ) if os .path .exists (tmp_root ) else tempfile .mkdtemp (dir = '/tmp' )
69
69
args_dict ['tmp_dir' ] = tmp_dir
70
- # Show the user a warning about limited storage in temp directories
71
- sys .stderr .write ( "WARNING: Writing temporary files to " + tmp_dir + " which could fill " +
72
- "up and interrupt your colleagues' work. If you're working with giant files, then " +
73
- "please define your own --tmp-dir, or we're gonna get ya!\n " )
70
+ # If input is large, show the user a warning about limited storage in temp directories
71
+ if os .path .getsize (args_dict ['input_maf' ]) > 100000000 :
72
+ sys .stderr .write ( "WARNING: Writing temporary files to " + tmp_dir + " which could " +
73
+ "fill up and interrupt your colleagues' work. If you're working with giant " +
74
+ "files, then please define your own --tmp-dir.\n " )
74
75
75
76
# Locate VEP and it's cache, the reference FASTA, and the VCF used for filtering
76
- vep_dir = cmo .util .programs ['vep' ][args .vep_release ]
77
- args_dict ['vep_data' ] = vep_dir
78
- args_dict ['vep_path' ] = vep_dir
77
+ args_dict ['vep_path' ] = cmo .util .programs ['vep' ][args .vep_release ]
78
+ args_dict ['vep_data' ] = cmo .util .genomes [args .ncbi_build ]['vep_cache' ]
79
79
args_dict ['ref_fasta' ] = cmo .util .genomes [args .ncbi_build ]['fasta' ]
80
80
try :
81
81
args_dict ['filter_vcf' ] = cmo .util .genomes [args .ncbi_build ]['exac' ]
0 commit comments