shendurelab / MPRAflow

A portable, flexible, parallelized tool for complete processing of massively parallel reporter assay data
Apache License 2.0
31 stars 16 forks source link

Error at Process `generate_mpranalyze_inputs (1)` stage #77

Open Minb88 opened 1 year ago

Minb88 commented 1 year ago

Hello,

This maybe an update issue as I have run the same data with no problems using MPRAflow earlier before having to re-download and update. I am currently using MPRAflow v2.3.5 and Nexflow v20.10.0.

I am getting the following error when running with the MPRAnalyze option (and the final labelled output file in the directory is empty): Error executing process > 'generate_mpranalyze_inputs (1)'

Caused by: Process generate_mpranalyze_inputs (1) terminated with an error exit status (1)

Command executed:

python /vf/users/patelmb/MPRAflow_2/MPRAflow/src/mpranalyze_compiler.py null_final_labeled_counts.txt

Command exit status: 1

Command output: (empty)

Command error: Traceback (most recent call last): File "/vf/users/patelmb/MPRAflow_2/MPRAflow/src/mpranalyze_compiler.py", line 82, in parse(sys.argv[1]) File "/vf/users/patelmb/MPRAflow_2/MPRAflow/src/mpranalyze_compiler.py", line 39, in parse n_bc = max([len(x) for x in rna_dict.values()]) ValueError: max() arg is an empty sequence

Work dir: /vf/users/patelmb/MPRAflow_2/MPRAflow/work/10/c500b6364bbf7332246a665e648036

Appreciate any help.

Best, Min

iris-chin commented 1 year ago

Hi Min,

I have just run into the same error. Were you able to determine what was causing this issue for you?

Best, Iris

llxts commented 1 year ago

Hi both,

not sure if yall are still having issues with this. I got the same error previously and it was due to the txt input (i.e. null_final_labeled_counts.txt) not having any data apart from the header.

I edited the file 'label_final_count_mat.py', mask=(counts['Barcode'].str.len() == 15) and changed 15 to the length of my Barcode, and it worked out for me.