@@ -351,7 +351,7 @@ async def _create_config_df(
351351 if len (layout_files ) == 0 :
352352 logger .warning (
353353 f"No layout file found for { label } , writing as 'UNKNOWN', "
354- f"this should be defined by user if using zFPKM or rnaseq_gen.py will not run"
354+ f"this should be defined if you are using zFPKM or downstream ' rnaseq_gen.py' will not run"
355355 )
356356 elif len (layout_files ) == 1 :
357357 with layout_files [0 ].open ("r" ) as file :
@@ -380,7 +380,7 @@ async def _create_config_df(
380380
381381 prep = "total"
382382 if len (prep_files ) == 0 :
383- logger .warning (f"No prep file found for { label } , assuming 'total' as in Total RNA library preparation" )
383+ logger .warning (f"No prep file found for { label } , assuming 'total', as in ' Total RNA' library preparation" )
384384 elif len (prep_files ) == 1 :
385385 with prep_files [0 ].open ("r" ) as file :
386386 prep = file .read ().strip ().lower ()
@@ -393,10 +393,10 @@ async def _create_config_df(
393393 )
394394
395395 mean_fragment_size = 100
396- if len (frag_files ) == 0 :
396+ if len (frag_files ) == 0 and prep != RNAPrepMethod . TOTAL . value :
397397 logger .warning (
398398 f"No fragment file found for { label } , using '100'. "
399- f"This must be defined by the user in order to use zFPKM normalization"
399+ "You should define this if you are going to use downstream zFPKM normalization"
400400 )
401401 elif len (frag_files ) == 1 :
402402 if layout == "single-end" :
@@ -512,7 +512,7 @@ async def _create_matrix_file(
512512 output_counts_matrix_filepath : Path ,
513513 rna : type_rna ,
514514) -> None :
515- config_df = await _create_config_df (context_name , como_input_dir = como_context_dir )
515+ config_df = await _create_config_df (context_name , como_context_dir = como_context_dir )
516516 await _write_counts_matrix (
517517 config_df = config_df ,
518518 como_context_dir = como_context_dir ,
0 commit comments