Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ascii-alignment-pileup
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
tools
ascii-alignment-pileup
Commits
63557718
Commit
63557718
authored
1 year ago
by
deliaBlue
Browse files
Options
Downloads
Patches
Plain Diff
refactor: use NULL as default
parent
ec654c56
No related branches found
No related tags found
1 merge request
!10
feat: add output prefix assignment
Pipeline
#17700
passed
1 year ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ascii_alignment_pileup.R
+2
-2
2 additions, 2 deletions
ascii_alignment_pileup.R
with
2 additions
and
2 deletions
ascii_alignment_pileup.R
+
2
−
2
View file @
63557718
...
...
@@ -128,7 +128,7 @@ option_list <- list(
"--prefix"
,
action
=
"store"
,
type
=
"character"
,
default
=
""
,
default
=
NULL
,
help
=
"Prefix to be used in the output file name(s). If not provided
the input BAM file(s) name will be used instead,"
,
metavar
=
"string"
...
...
@@ -197,7 +197,7 @@ if (! is.null(fl.ref)) {ref <- FaFile(fl.ref)}
if
(
!
is.null
(
fl.anno
))
{
anno
<-
import
(
con
=
fl.anno
)}
# Get file prefix from BAM files or from CLI argument
fl.prefix
<-
if
(
prefix.out
!=
""
)
prefix.out
else
paste
(
basename
(
file_path_sans_ext
(
fl.bam
)),
collapse
=
"."
)
fl.prefix
<-
if
(
!
is.null
(
prefix.out
)
)
prefix.out
else
paste
(
basename
(
file_path_sans_ext
(
fl.bam
)),
collapse
=
"."
)
#---> <---#
# Print status message
...
...
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