shahcompbio / scgenome-deprecated

3 stars 4 forks source link

NameError: name 'scgenome' is not defined #88

Open sohrabsa opened 6 months ago

sohrabsa commented 6 months ago
import scgenome as scg
scg.__version__
#  '0.0.17+10.g55802ef'

The following code:

adata = scg.pp.read_dlp_hmmcopy(rootPath, rootPath, rootPath)

fails with the following error:

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[19], line 1
----> 1 adata = scg.pp.read_dlp_hmmcopy(rootPath, rootPath, rootPath)

File /lila/home/salehis/projects/scgenome/scgenome/scgenome/preprocessing/load_cn.py:38, in read_dlp_hmmcopy(alignment_results_dir, hmmcopy_results_dir, annotation_results_dir, sample_ids, additional_hmmcopy_reads_cols)
     15 def read_dlp_hmmcopy(alignment_results_dir, hmmcopy_results_dir, annotation_results_dir, sample_ids=None, additional_hmmcopy_reads_cols=None) -> AnnData:
     16     """ Read hmmcopy results from the DLP pipeline.
     17 
     18     Parameters
   (...)
     34         An instantiated AnnData Object.
     35     """
---> 38     results = scgenome.loaders.qc.load_qc_results(
     39         alignment_results_dir,
     40         hmmcopy_results_dir,
     41         annotation_results_dir,
     42         sample_ids=sample_ids,
     43         additional_hmmcopy_reads_cols=additional_hmmcopy_reads_cols,
     44     )
     46     metrics_data = results['annotation_metrics']
     47     cn_data = results['hmmcopy_reads']

NameError: name 'scgenome' is not defined