getzlab / SignatureAnalyzer

Updated SignatureAnalyzer-GPU with mutational spectra & RNA expression compatibility.
MIT License
71 stars 21 forks source link

TypeError: DataFrame.dropna() #50

Closed sunyihong closed 1 year ago

sunyihong commented 1 year ago

Hello, I got the problem when using below command: signatureanalyzer test.maf -n 10 --objective poisson --hg_build ${hg_ref}

Here is the error: Traceback (most recent call last): File "/opt/service/miniconda3/envs/signa_env/bin/signatureanalyzer", line 33, in sys.exit(load_entry_point('signatureanalyzer', 'console_scripts', 'signatureanalyzer')()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/software/signatureanalyzer/getzlab-SignatureAnalyzer/signatureanalyzer/main.py", line 195, in main run_maf( File "/software/signatureanalyzer/getzlab-SignatureAnalyzer/signatureanalyzer/signatureanalyzer.py", line 82, in run_maf reference_df, reference_index = load_reference_signatures(reference) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/software/signatureanalyzer/getzlab-SignatureAnalyzer/signatureanalyzer/utils.py", line 223, in load_reference_signatures reference = pd.read_csv(pkg_resources.resource_filename('signatureanalyzer', 'ref/cosmic_v2/sa_cosmic2.tsv'), sep='\t').dropna(1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: DataFrame.dropna() takes 1 positional argument but 2 were given

Thank you!

sunyihong commented 1 year ago

it works! Thank you