Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
ngs_tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
bioinfo
ngs_tools
Commits
8fc29827
Commit
8fc29827
authored
9 years ago
by
Holger Brandl
Browse files
Options
Downloads
Patches
Plain Diff
inc R datautils version to 1.9; better counting
parent
dd2b5932
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
chipseq_workflow/chipseq_utils.sh
+17
-7
17 additions, 7 deletions
chipseq_workflow/chipseq_utils.sh
with
17 additions
and
7 deletions
chipseq_workflow/chipseq_utils.sh
+
17
−
7
View file @
8fc29827
#source <(curl https://raw.githubusercontent.com/holgerbrandl/datautils/v1.
4
/R/spinr/spin_utils.sh 2>&1 2>/dev/null)
#source <(curl https://raw.githubusercontent.com/holgerbrandl/datautils/v1.
8
/R/spinr/spin_utils.sh 2>&1 2>/dev/null)
## configure paths
...
...
@@ -14,8 +14,8 @@ export PYTHONPATH=/home/brandl/bin/macs2/lib/python2.7/site-packages:$PYTHONPATH
cs_bowtie_qc
(){
echo
'
devtools::source_url("https://raw.githubusercontent.com/holgerbrandl/datautils/v1.
4
/R/core_commons.R")
devtools::source_url("https://raw.githubusercontent.com/holgerbrandl/datautils/v1.
4
/R/ggplot_commons.R")
devtools::source_url("https://raw.githubusercontent.com/holgerbrandl/datautils/v1.
8
/R/core_commons.R")
devtools::source_url("https://raw.githubusercontent.com/holgerbrandl/datautils/v1.
8
/R/ggplot_commons.R")
########################################################################################################################
#> # Bowtie2 Mapping Summary
...
...
@@ -132,16 +132,26 @@ if [ $# -ne 2 ]; then
fi
echo
'
devtools::source_url("https://raw.githubusercontent.com/holgerbrandl/datautils/v1.
4
/R/core_commons.R")
devtools::source_url("https://raw.githubusercontent.com/holgerbrandl/datautils/v1.
8
/R/core_commons.R")
bamFile=commandArgs(T)[1]
chromInfoFile=commandArgs(T)[2]
#bamFile="/projects/bioinfo/holger/projects/k
han
_chipseq
_h1
/alignments_mmfilt/H
1M
_Dome_mmf.bam";
#
bed
File="danRer7.chromInfo"
#bamFile="/projects/bioinfo/holger/projects/k
rause
_chipseq/alignments_mmfilt/H
3HA
_Dome_mmf.bam";
#
chromInfo
File="danRer7.chromInfo"
chrOrderBam <- readLines(pipe(paste("samtools view -H ", bamFile, " | cut -f2 | grep -F SN"))) %>% str_replace(fixed("SN:"), "")
chromInfo <- read.delim(chromInfoFile) %>% mutate(chrom=str_replace(chrom, "chr", ""))
#data.frame(chrom=chrOrderBam) %>%
# left_join(chromInfo) %>%
# ## make sure to always keep all chromsomes of the bam no matter if they are present in the chromInfo.
# mutate(size=ifelse(is.na(size), -1, size)) %>%
# write.delim(stdout(), header=F, quote=F)
read.delim(chromInfoFile) %>%
mutate(chrom=str_replace(chrom, "chrM", "MT")) %>%
mutate(chrom=str_replace(chrom, "chr", "")) %>%
mutate(chrom=factor(as.character(chrom), levels=chrOrderBam)) %>% arrange(chrom) %>%
filter(!is.na(chrom)) %>%
...
...
@@ -158,7 +168,7 @@ if [ $# -ne 2 ]; then
fi
echo
'
devtools::source_url("https://raw.githubusercontent.com/holgerbrandl/datautils/v1.
4
/R/core_commons.R")
devtools::source_url("https://raw.githubusercontent.com/holgerbrandl/datautils/v1.
8
/R/core_commons.R")
bamFile=commandArgs(T)[1]
bedFile=commandArgs(T)[2]
...
...
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