-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'Index' object has no attribute 'difference' #115
Comments
conda list packages in environment at /home/ry/miniconda3/envs/optitype:Name Version Build Channel_libgcc_mutex 0.1 conda_forge conda-forge |
Hi I ran into this erro,too. Did you solve that problem now? Can you tell me the solution if possible? thank u very much |
conda create -n optitype python=2.7.3
conda install -n optitype -c bioconda optitype
conda activate optitype
bam=/home/ry/analysis/data/optitype/bam
raw=/home/ry/analysis/data/optitype/raw
fastq=/home/ry/analysis/data/optitype/fastq
hla=/home/ry/analysis/data/optitype/hla
dnaref=/home/ry/analysis/data/optitype/hlareference/hla_reference_dna.fasta
OptiTypePipeline.py -i $fastq/GYH1.fastq $fastq/GYH2.fastq --dna -v -o $hla -p GYH.optitype.dna
mapping with 11 threads...
0:00:00.36 Mapping GYH1.fastq to GEN reference...
0:00:32.76 Mapping GYH2.fastq to GEN reference...
0:01:06.82 Generating binary hit matrix.
0:01:06.83 Loading /home/ry/analysis/data/optitype/hla/2020_09_03_21_50_24_1.bam started. Number of HLA reads loaded (updated every thousand):
1K...2K...3K...4K...5K...6K...7K...8K...9K...10K...11K...
0:01:09.90 11460 reads loaded. Creating dataframe...
0:01:10.22 Dataframes created. Shape: 11460 x 11179, hits: 2224373 (2224373), sparsity: 1 in 57.59
0:01:11.55 Loading /home/ry/analysis/data/optitype/hla/2020_09_03_21_50_24_2.bam started. Number of HLA reads loaded (updated every thousand):
1K...2K...3K...4K...5K...6K...7K...8K...9K...10K...11K...
0:01:14.45 11318 reads loaded. Creating dataframe...
0:01:14.77 Dataframes created. Shape: 11318 x 11179, hits: 2149552 (2149552), sparsity: 1 in 58.86
Traceback (most recent call last):
File "/home/ry/miniconda3/envs/optitype/bin/OptiTypePipeline.py", line 347, in
binary_p, binary_mis, binary_un = ht.create_paired_matrix(binary1, binary2)
File "/home/ry/miniconda3/envs/optitype/share/optitype-1.3.2-1/hlatyper.py", line 518, in create_paired_matrix
only_1 = binary_1.index.difference(binary_2.index)
AttributeError: 'Index' object has no attribute 'difference'
The text was updated successfully, but these errors were encountered: