Commit 500fc70
authored
Fix FPKM calcualtion (#242)
* fix(fpkm): update imports for zFPKM calculation improvements
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* fix(fpkm): use Salmon quantification instead of STAR quantification
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* chore: ruff formatting
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* chore: fill with integers for faster processing
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* chore: remove unnecessary async function usage
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* fix: remove non existant genes from conversion
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* refactor: use more explicit (albeit longer) code to create gene_info dataframe object
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* chore: import required modules
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* refactor: optional argument for fragment data
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* refactor: improve handling for single cell data
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* chore: generalize data type input
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* chore: ruff formatting
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* chore: simplify FPKM/RPKM calculations; properly compute per-gene FPKM scores
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* refactor: move zfpkm calculation to external package
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* chore: use np.bool for boolean array
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* chore: ruff formatting
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* feat: allow setting negative zFPKM results to 0
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* feat: simplification to use external zfpkm package
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* feat: allow providing the fragment size filepath (from rnaseq preprocessing)
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* chore(ruff): reduce max line length
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* chore(ruff): mark unsorted imports as fixable
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* chore(uv): lock pyproject file
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* fix: rename count to quant in testing files
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* fix: test new quant information
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* chore: use quant files instead of strand files
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* chore: updated COMO_input files for naiveB to use updated FastqToGeneCounts information
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* feat: added Salmon quantification data for naive B
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* chore: use `_read_file` function to read data
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* fix(tests): remove 1 from expected gene names to fix header
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* fix(tests): use `endswith` instead of `is in`
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* fix(tests): Use missing file appropriately
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* chore(uv): Use dependency groups
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
* revert: use synchronous programming for more deterministic usage
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
---------
Signed-off-by: Josh Loecker <joshloecker@icloud.com>1 parent ef5f7b3 commit 500fc70
74 files changed
Lines changed: 2504832 additions & 3415412 deletions
File tree
- main
- como
- data/COMO_input/naiveB
- fragmentSizes
- S1
- S2
- S3
- geneCounts
- S1
- S2
- S3
- insertSizeMetrics
- S1
- S2
- S3
- layouts
- S1
- S2
- S3
- prepMethods
- S1
- S2
- S3
- quantification
- S1
- S2
- S3
- tests
- fixtures
- unit
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
215 | 219 | | |
216 | 220 | | |
217 | | - | |
| 221 | + | |
218 | 222 | | |
219 | | - | |
| 223 | + | |
220 | 224 | | |
221 | 225 | | |
222 | 226 | | |
| |||
244 | 248 | | |
245 | 249 | | |
246 | 250 | | |
247 | | - | |
| 251 | + | |
248 | 252 | | |
249 | | - | |
250 | | - | |
251 | | - | |
| 253 | + | |
252 | 254 | | |
253 | 255 | | |
254 | 256 | | |
255 | 257 | | |
256 | 258 | | |
257 | 259 | | |
258 | | - | |
| 260 | + | |
| 261 | + | |
259 | 262 | | |
260 | 263 | | |
261 | 264 | | |
| |||
Lines changed: 78362 additions & 258145 deletions
Large diffs are not rendered by default.
0 commit comments