Git Product home page Git Product logo

Comments (3)

agiraldeztrujillo avatar agiraldeztrujillo commented on September 23, 2024

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.

EmanuelGoncalves avatar EmanuelGoncalves commented on September 23, 2024

Can you check if bedtools are running fine for you?

from crispy.

agiraldeztrujillo avatar agiraldeztrujillo commented on September 23, 2024

Yeah, bedtools seems to be working fine

from crispy.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.