Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CGI
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LPGP
CGI
Commits
97cb8a16
Commit
97cb8a16
authored
3 years ago
by
Aurelien Brionne
Browse files
Options
Downloads
Patches
Plain Diff
obsexp upgrade
parent
11297df4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+33
-0
33 additions, 0 deletions
README.md
bin/ObsExp.R
+13
-2
13 additions, 2 deletions
bin/ObsExp.R
modules/modules.nf
+2
-5
2 additions, 5 deletions
modules/modules.nf
with
48 additions
and
7 deletions
README.md
+
33
−
0
View file @
97cb8a16
...
...
@@ -4,6 +4,8 @@ Ready to use Nextflow CGI workflow available on genotoul /work/project/lpgp/Next
## Usage example
### newcpgreport
```
bash
#!/bin/bash
#SBATCH -J CGI
...
...
@@ -23,6 +25,37 @@ nextflow run /work/project/lpgp/Nextflow/cgi/ \
--out_dir
"
${
PWD
}
/results"
```
### cpg_lh (UCSC)
```
bash
#!/bin/bash
#SBATCH -J CGI
#SBATCH -p unlimitq
module load system/singularity-3.7.3
module load bioinfo/Nextflow-v21.04.1
nextflow run /work/project/lpgp/Nextflow/cgi/
\
-profile
slurm
\
--genome
"genome.fa.gz"
\
--cpglh
\
--out_dir
"
${
PWD
}
/results"
```
### CpG Obs/Exp window
```
bash
#!/bin/bash
#SBATCH -J CGI
#SBATCH -p unlimitq
module load system/singularity-3.7.3
module load bioinfo/Nextflow-v21.04.1
nextflow run /work/project/lpgp/Nextflow/cgi/
\
-profile
slurm
\
--genome
"genome.fa.gz"
\
--obsexp
\
--obsexp_w
200
\
--out_dir
"
${
PWD
}
/results"
```
## Install CGI flow and build singularity image
Clone CGI git and build local singularity image (with system admin) based on the provided singularity definition file.
...
...
This diff is collapsed.
Click to expand it.
bin/ObsExp.R
+
13
−
2
View file @
97cb8a16
...
...
@@ -155,7 +155,15 @@ Data[,query:=NULL]
# write
data.table
::
fwrite
(
Data
,
file
=
"ObsExp_w.txt"
,
file
=
paste
(
sub
(
" .+$"
,
""
,
names
(
Fa
)
),
"ObsExp_w.txt"
,
sep
=
"_"
),
sep
=
"\t"
,
quote
=
FALSE
,
col.names
=
FALSE
...
...
@@ -163,6 +171,9 @@ data.table::fwrite(
# gzip
R.utils
::
gzip
(
"ObsExp_w.txt"
list.files
(
pattern
=
"ObsExp_w.txt"
,
full.names
=
TRUE
)
)
#//
\ No newline at end of file
This diff is collapsed.
Click to expand it.
modules/modules.nf
+
2
−
5
View file @
97cb8a16
...
...
@@ -117,10 +117,7 @@ process OBSEXP_COLLECT {
script:
"""
echo -e "seqnames\\tstart\\tend\\width\\tC\\tG\\tCpG\\tObsExp" > "ObsExp_w${params.obsexp_w}.txt"
cat ./*.gz >> "ObsExp_w${params.obsexp_w}.txt"
z
cat ./*.gz >> "ObsExp_w${params.obsexp_w}.txt"
gzip "ObsExp_w${params.obsexp_w}.txt"
"""
}
}
\ No newline at end of file
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