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
3499f2a6
Commit
3499f2a6
authored
8 years ago
by
Holger Brandl
Browse files
Options
Downloads
Patches
Plain Diff
modernized chipseq utilities
parent
3c31df51
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
chipseq_workflow/chipseq_utils.sh
+12
-10
12 additions, 10 deletions
chipseq_workflow/chipseq_utils.sh
dge_workflow/dge_utils.sh
+1
-0
1 addition, 0 deletions
dge_workflow/dge_utils.sh
pom.xml
+44
-0
44 additions, 0 deletions
pom.xml
with
57 additions
and
10 deletions
chipseq_workflow/chipseq_utils.sh
+
12
−
10
View file @
3499f2a6
...
...
@@ -136,7 +136,7 @@ if [ $# -ne 2 ]; then
fi
echo
'
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.
26
/R/core_commons.R")
bamFile=commandArgs(T)[1]
chromInfoFile=commandArgs(T)[2]
...
...
@@ -144,9 +144,12 @@ chromInfoFile=commandArgs(T)[2]
#bamFile="/projects/bioinfo/holger/projects/krause_chipseq/alignments_mmfilt/H3HA_Dome_mmf.bam";
#chromInfoFile="danRer7.chromInfo"
#bamFile="/projects/bioinfo/holger/projects/krause_chipseq/reanalysis/../alignments_mmfilt/H3HA_Sphere_mmf.bam";
#chromInfoFile="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", ""))
chromInfo <- read
_tsv
(chromInfoFile
, col_names=F) %>% set_names("chromosome", "chr_length"
) %>% mutate(chrom=str_replace(chrom
osome
, "chr", ""))
#data.frame(chrom=chrOrderBam) %>%
# left_join(chromInfo) %>%
...
...
@@ -154,16 +157,15 @@ chromInfo <- read.delim(chromInfoFile) %>% mutate(chrom=str_replace(chrom, "chr"
# 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)) %>%
read
_tsv
(chromInfoFile
, col_names=F
) %>%
set_names("chromosome", "chr_length"
) %>%
mutate(chrom
osome
=str_replace(chrom
osome, "chrM", "MT") %>% str_replace(
"chr", "")) %>%
mutate(chrom
osome
=factor(as.character(chrom
osome
), levels=chrOrderBam)) %>% arrange(chrom
osome
) %>%
filter(!is.na(chrom
osome
)) %>%
write.delim(stdout(), header=F, quote=F)
'
| Rscript
--vanilla
-
$1
$2
2> /dev/null
}
export
-f
cs_sync_order_chrominfo2bam
cs_sync_order_bam2bed
cs_sync_order_bam2bed
(){
...
...
@@ -172,7 +174,7 @@ if [ $# -ne 2 ]; then
fi
echo
'
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.
26
/R/core_commons.R")
bamFile=commandArgs(T)[1]
bedFile=commandArgs(T)[2]
...
...
This diff is collapsed.
Click to expand it.
dge_workflow/dge_utils.sh
+
1
−
0
View file @
3499f2a6
...
...
@@ -14,6 +14,7 @@ export PATH=${BIO_BIN_BASE}/FastQC_0.11.2:$PATH
export
PATH
=
${
BIO_BIN_BASE
}
/bedtools2-2.25.0/bin/:
$PATH
export
PATH
=
${
BIO_BIN_BASE
}
/samtools-1.3:
$PATH
export
PATH
=
${
BIO_BIN_BASE
}
/STAR-2.5.1b/source:
$PATH
export
PATH
=
${
BIO_BIN_BASE
}
/ucsc:
$PATH
# for wigToBigWig
#export PATH=/home/brandl/bin/subread-1.4.6-p3-Linux-x86_64/bin:$PATH
...
...
This diff is collapsed.
Click to expand it.
pom.xml
+
44
−
0
View file @
3499f2a6
...
...
@@ -6,6 +6,10 @@
<groupId>
de.mpicbg.scicomp.bioinfo
</groupId>
<version>
1.0-SNAPSHOT
</version>
<properties>
<kotlin.version>
1.0.3
</kotlin.version>
</properties>
<dependencies>
<dependency>
...
...
@@ -25,5 +29,45 @@
<artifactId>
kutils
</artifactId>
<version>
0.1-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
org.jetbrains.kotlin
</groupId>
<artifactId>
kotlin-stdlib
</artifactId>
<version>
${kotlin.version}
</version>
</dependency>
<dependency>
<groupId>
org.jetbrains.kotlin
</groupId>
<artifactId>
kotlin-test
</artifactId>
<version>
${kotlin.version}
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
<build>
<sourceDirectory></sourceDirectory>
<plugins>
<plugin>
<groupId>
org.jetbrains.kotlin
</groupId>
<artifactId>
kotlin-maven-plugin
</artifactId>
<version>
${kotlin.version}
</version>
<executions>
<execution>
<id>
compile
</id>
<phase>
process-sources
</phase>
<goals>
<goal>
compile
</goal>
</goals>
</execution>
<execution>
<id>
test-compile
</id>
<phase>
process-test-sources
</phase>
<goals>
<goal>
test-compile
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ 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