Skip to content

Error in parse_final_snp #24

Description

@palmfern

Error when generating the final cell_snp_Aallele.npz cell_snp_Ballele.npz and unique_snp_ids.npy.

The parse_final_snp.log file:

/CalicoST//utils/get_snp_matrix.py:97: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perf
orm elementwise comparison
phased_AD = np.where( (df_snp.GT.values == "0|1").reshape(-1,1), AD.A, (DP-AD).A )
Traceback (most recent call last):
File "/CalicoST//utils/get_snp_matrix.py", line 183, in
cell_snp_Aallele, cell_snp_Ballele, unique_snp_ids = cell_by_gene_lefthap_counts(args.cellsnplite_result_dir, args.eagle_out_dir, barcode_list)
File "CalicoST//utils/get_snp_matrix.py", line 97, in cell_by_gene_lefthap_counts
phased_AD = np.where( (df_snp.GT.values == "0|1").reshape(-1,1), AD.A, (DP-AD).A )
AttributeError: 'bool' object has no attribute 'reshape'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions