Comments (3)
Ok, so as a bit of a follow-up, I just went and tried with my own data, and now the error is a little bit different:
AttributeError Traceback (most recent call last)
/home/antonio_gt/TFM/BAGEL/Intento_2/PatuT_control/day7/bagel_script_PatuT_control_day7.ipynb Cell 20 line 1
----> 1 bed_df_ex = crispy_ex.correct(n_sgrna=10)
2 print(bed_df_ex.head())
File ~/anaconda3/envs/mamba/envs/crispy/lib/python3.9/site-packages/crispy/CopyNumberCorrection.py:94, in Crispy.correct(self, x_features, y_feature, n_sgrna)
92 # - Fit Gaussian Process on segment fold-changes
93 self.gpr = CrispyGaussian(bed_df, n_sgrna=n_sgrna)
---> 94 self.gpr = self.gpr.fit(x=x_features, y=y_feature)
96 bed_df["gp_mean"] = self.gpr.predict(bed_df[x_features])
98 # - Correct fold-change by subtracting the estimated mean
File ~/anaconda3/envs/mamba/envs/crispy/lib/python3.9/site-packages/crispy/CopyNumberCorrection.py:270, in CrispyGaussian.fit(self, x, y, train_idx)
267 x = self.bed_seg.query(f"sgRNA_ID >= {self.n_sgrna}")[x]
268 y = self.bed_seg.query(f"sgRNA_ID >= {self.n_sgrna}")[y]
--> 270 return super().fit(x, y)
File ~/anaconda3/envs/mamba/envs/crispy/lib/python3.9/site-packages/sklearn/base.py:1145, in _fit_context..decorator..wrapper(estimator, *args, **kwargs)
1140 partial_fit_and_fitted = (
1141 fit_method.name == "partial_fit" and _is_fitted(estimator)
1142 )
1144 if not global_skip_validation and not partial_fit_and_fitted:
-> 1145 estimator._validate_params()
1147 with config_context(
...
--> 195 value = getattr(self, key)
196 if deep and hasattr(value, "get_params") and not isinstance(value, type):
197 deep_items = value.get_params().items()
AttributeError: 'CrispyGaussian' object has no attribute 'bed_df'
from crispy.
Can you check if bedtools are running fine for you?
from crispy.
Yeah, bedtools seems to be working fine
from crispy.
Related Issues (5)
- It does not work in window HOT 1
- Crispy copy number input file and CRISPR screen input file format question HOT 3
- /mnt/efs/home/stb3865/software/anaconda3/lib/python3.8/site-packages/crispy/data/crispr_manifests//project_score_all_qc_failed_samples.csv does not exist
- KeyError: 'Passing list-likes to .loc or [] with any missing labels is no longer supported HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crispy.