Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scRNA-seq-simulation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
zavolan_group
pipelines
scRNA-seq-simulation
Commits
31d52921
Commit
31d52921
authored
3 years ago
by
Reto Tschannen
Browse files
Options
Downloads
Patches
Plain Diff
chore:tried fixing flake8 errors
parent
a4b6e928
No related branches found
No related tags found
1 merge request
!13
feat: add function to calculate mean and variance
Pipeline
#13849
failed
3 years ago
Stage: qc
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/meanvariancefunction.py
+3
-0
3 additions, 0 deletions
src/meanvariancefunction.py
with
3 additions
and
0 deletions
src/meanvariancefunction.py
+
3
−
0
View file @
31d52921
"""
Calculates mean and the variance for a given gene accross all cells.
"""
import
csv
import
csv
from
glob
import
glob
from
glob
import
glob
import
io
import
io
...
@@ -21,6 +23,7 @@ def mean_variance(filepath: str, output_dir: str = os.getcwd()+'/') -> str:
...
@@ -21,6 +23,7 @@ def mean_variance(filepath: str, output_dir: str = os.getcwd()+'/') -> str:
Raises:
Raises:
ValueError: If there are no files in directory
ValueError: If there are no files in directory
"""
"""
# Open each file in the input directory, raises error if no file is found
# Open each file in the input directory, raises error if no file is found
files
=
[
file
for
file
in
glob
(
filepath
)]
files
=
[
file
for
file
in
glob
(
filepath
)]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment