Giter VIP home page Giter VIP logo

scar-reproducibility's People

Contributors

caibinsh avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

notestaff

scar-reproducibility's Issues

Different thresholds for cell-free droplets

Hello,

I noticed in the scRNA-seq and CRISPR screen tutorial you had different thresholds for the cell-free and droplet cutoffs.
I'm assuming the most important part is the cell-free portion, which should be under and after the knee like the 20k hgmm sample?
Or would it much after the knee like the A549 sample?
I'm mainly using this for CRISPR guide calling if that helps guide your advice.
image
image

Thanks,
Chang

dataloader obsolete

"from . import _data_loader as dataloader" in line 4 of main.py is throwing an exception. As the module is obsolete, removing the import statement will fix the issue

Tutorial for CRISPR screen?

Hello,

In your preprint you used scAR to denoise the sgRNA calls, I was wondering if you could provide a tutorial for that?

Best,
Chang

Collapse sgRNAs?

Hello,

I'm trying out the CRISPR tutorial, I was wondering if you'd recommend collapsing all the counts for the sgRNAs before running scAR?

Best,
Chang

Interpretation of denoised counts

Hi Caibin,

Could you briefly explain the interpretation of denoised counts given by scAR? I noticed that it returns floats, not counts. How should I then normalise the data? Just log2(x+1) after scaling by library size?

Regards,
Mikhael

ValueError on training

Dear Caibin,

I encountered an error upon calling the train() method. Below is the abridged

scar_obj.train(epochs=400, batch_size=256,)

..Running VAE using the following param set:
......scAR mode:  scRNAseq
......count model:  binomial
......num_input_feature:  15604
......NN_layer1:  150
......NN_layer2:  100
......latent_space:  15
......dropout_prob:  0
......kld_weight:  1e-05
......lr:  0.001
......lr_step_size:  5
......lr_gamma:  0.97
===========================================
  Training.....
  0%|          | 0/400 [00:00<?, ?it/s]
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Input In [12], in <module>
----> 1 scar_obj.train(epochs=400, batch_size=256,)

File /scAR/lib/python3.8/site-packages/torch/distributions/distribution.py:55, in Distribution.__init__(self, batch_shape, event_shape, validate_args)
     53 valid = constraint.check(value)
     54 if not valid.all():
---> 55     raise ValueError(
     56         f"Expected parameter {param} "
     57         f"({type(value).__name__} of shape {tuple(value.shape)}) "
     58         f"of distribution {repr(self)} "
     59         f"to satisfy the constraint {repr(constraint)}, "
     60         f"but found invalid values:\n{value}"
     61     )
     62 if not constraint.check(getattr(self, param)).all():
     63     raise ValueError("The parameter {} has invalid values".format(param))

ValueError: Expected parameter loc (Tensor of shape (256, 15)) of distribution Normal(loc: torch.Size([256, 15]), scale: torch.Size([256, 15])) to satisfy the constraint Real(), but found invalid values:
tensor([[nan, nan, nan,  ..., nan, nan, nan],
        [nan, nan, nan,  ..., nan, nan, nan],
        [nan, nan, nan,  ..., nan, nan, nan],
        ...,
        [nan, nan, nan,  ..., nan, nan, nan],
        [nan, nan, nan,  ..., nan, nan, nan],
        [nan, nan, nan,  ..., nan, nan, nan]], device='cuda:0',
       grad_fn=<AddmmBackward0>)

I have also tried running scAR on my CITEseq data and at least so far the model is training. Perhaps there's something wrong with my RNA count matrix, which I feel quite unlikely.

I am happy to provide further information should you need it. Thanks in advance.

Regards,
Mikhael

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.