Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cellranger_mkfastq
Manage
Activity
Members
Labels
Plan
Issues
7
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
BICF
Astrocyte
cellranger_mkfastq
Commits
c43e5767
Commit
c43e5767
authored
5 years ago
by
Jeremy Mathews
Browse files
Options
Downloads
Patches
Plain Diff
Fix
#34
to remove trailing and leading whitespace in design file contents
parent
a2e68abf
Branches
Branches containing commit
Tags
Tags containing commit
3 merge requests
!59
Develop
,
!58
Develop
,
!54
Fix #34 to remove trailing and leading whitespace in design file contents
Pipeline
#5100
passed with stages
in 2 minutes and 42 seconds
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-1
1 addition, 1 deletion
CHANGELOG.md
workflow/scripts/check_design.py
+3
-3
3 additions, 3 deletions
workflow/scripts/check_design.py
with
4 additions
and
4 deletions
CHANGELOG.md
+
1
−
1
View file @
c43e5767
...
...
@@ -3,7 +3,7 @@
*
Change Cellranger Version to 3.1.0
*
Fix countDesign to take multiple samples
*
Add MIT License
*
Check Design File for spaces in name
*
Check Design File for spaces in name
and file contents
*
Update design example, README, and astrocyte.yml with current barcode IDs
**Background**
...
...
This diff is collapsed.
Click to expand it.
workflow/scripts/check_design.py
+
3
−
3
View file @
c43e5767
...
...
@@ -55,7 +55,7 @@ def check_design_headers(design):
if
len
(
missing_headers
)
>
0
:
logger
.
error
(
'
Missing column headers: %s
'
,
list
(
missing_headers
))
raise
Exception
(
"
Missing column headers: %s
"
%
list
(
missing_headers
))
return
design
def
main
():
...
...
@@ -67,7 +67,7 @@ def main():
logger
.
addHandler
(
handler
)
# Read files as dataframes
design_df
=
pd
.
read_csv
(
args
.
design
,
sep
=
'
,
'
)
design_df
=
pd
.
read_csv
(
args
.
design
,
sep
=
'
,
'
,
converters
=
{
'
Lane
'
:
str
.
strip
,
'
Sample
'
:
str
.
strip
,
'
Index
'
:
str
.
strip
}
)
# Check design file
new_design_df
=
check_design_headers
(
design_df
)
...
...
@@ -75,4 +75,4 @@ def main():
new_design_df
.
to_csv
(
'
design.checked.csv
'
,
header
=
True
,
sep
=
'
,
'
,
index
=
False
)
if
__name__
==
'
__main__
'
:
main
()
\ No newline at end of file
main
()
This diff is collapsed.
Click to expand it.
Preview
0%
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