Giter Site home page Giter Site logo

ppreshant / flow_cytometry Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 22.59 MB

analyzing .fcs2.0/3.0 files with semi-automated gating and plotting

License: GNU General Public License v3.0

R 3.38% Python 2.27% Jupyter Notebook 13.46% Julia 0.15% HTML 80.73%

flow_cytometry's People

Contributors

ppreshant avatar

Stargazers

 avatar

Watchers

 avatar

flow_cytometry's Issues

Replace ` /` with `_` in the name column in pData and flowworkspace_summary

in get_and_parse_plate_layout() : I added the / to between assay_variable and sample_category but don't recall the reason for making this new column when the sample_name_bulk already has a _ delimiter?

Am later replacing the / with _ with str_replace while renaming fcs files before write.FCS() in 7-exploratory..R for saving aggregated data from multiple runs/plates`

Make a wrapper to speed up manual checking of gating

Make a wrapper function : select_and_show_gating() that takes in the well number (ex: B04), and gating fraction and calls

           scatter_channels, fluorescence_channels, density_gating_fraction=.3,
           make_plots = True)```

Error with `fcssummary.subset` for single fluorophore data

There's a problem with pivoting the summary of fl.set when there's only 1 fluorophore in analyze_fcs.R. This is when the fluor_channel subset of the arrau returns a named vector (names of mean, median, quartiles etc.) but leaves out the channel name.

How to fix?

  • need to check for only 1 row, reshape and add back a name? -- *too indirect
  • convert the array to a tibble before selecting the desired channels - *issue : the tibble's columns are named after the names of fluor_channels, instead of values
    • select by values only then..

Check line 104.
pivot_wider(names_from = measurement, values_from = value) %>% # put mean, median .. in separate columns

Caused by error in `all_of()`: ! Can't subset elements that don't exist. โœ– Element `mScarlet-I-A` doesn't exist.

Possible reason : there is no names_glue = "{statistic}_{.value} format when there's only 1 fluorophore :(

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.