Skip to content

Commit 0d1aad0

Browse files
Merge pull request #304 from databio/dev
0.12.0 Release
2 parents 9ea1043 + 7a2e472 commit 0d1aad0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1158
-1512
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,7 @@ examples/test_project/test_hmmratac.yaml
4848
examples/test_project/test_homer.yaml
4949
examples/test_project/test_macs.yaml
5050
.Rproj.user
51+
/examples/data/tutorial1_r1.fastq.gz
52+
/examples/data/tutorial1_r2.fastq.gz
53+
/examples/data/tutorial2_r1.fastq.gz
54+
/examples/data/tutorial2_r2.fastq.gz

Makefile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,3 @@ test:
44
python pipelines/pepatac.py -P 3 -M 100 -O test_out -R -S liver -G hg19 -Q paired -C pepatac.yaml --genome-size hs --prealignments rCRSd human_repeats -I examples/test_data/liver-CD31_test_R1.fastq.gz -I2 examples/test_data/liver-CD31_test_R2.fastq.gz
55
changtest:
66
python pipelines/pepatac.py -P 3 -M 100 -O test_out -R -S liver -G hg19 -Q paired -C $HOME/code/pepatac/examples/chang_project/pepatac.yaml -gs mm -I examples/test_data/liver-CD31_test_R1.fastq.gz -I2 examples/test_data/liver-CD31_test_R2.fastq.gz
7-
8-
9-
docker:
10-
docker build -t databio/pepatac -f containers/pepatac.Dockerfile .
11-
12-
singularity:
13-
singularity build $${SIMAGES}pepatac docker://databio/pepatac

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Pull requests welcome. Active development should occur in a development or featu
3333
3434
* Ryan Corces, [email protected]
3535
* Vince Reuter, [email protected]
36+
* Donald Campbell, https://github.com/donaldcampbelljr
3637
* Others... (add your name)
3738

3839
## Citing

checkinstall

Lines changed: 35 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ while IFS= read -r line; do
394394
done < $REQS
395395

396396
# Check tool installation
397-
declare -a requiredCommands=("perl" "awk" "grep" "sed" "bedtools" "bowtie2" "macs3" "preseq" "samblaster" "samtools" "skewer" "bedToBigBed" "bigWigCat" "wigToBigWig" "Rscript")
397+
declare -a requiredCommands=("perl" "awk" "grep" "sed" "bedtools" "bowtie2" "macs3" "preseq" "samblaster" "samtools" "skewer" "bedToBigBed" "Rscript" "gtars")
398398

399399
for cmd in ${requiredCommands[@]}; do
400400
if ! is_executable $cmd; then
@@ -740,7 +740,7 @@ else
740740
done < $REQS
741741

742742
# Check tool installation
743-
declare -a requiredCommands=("perl" "awk" "grep" "sed" "bedtools" "bowtie2" "macs3" "preseq" "samblaster" "samtools" "skewer" "bedToBigBed" "bigWigCat" "wigToBigWig" "Rscript")
743+
declare -a requiredCommands=("perl" "awk" "grep" "sed" "bedtools" "bowtie2" "macs3" "preseq" "samblaster" "samtools" "skewer" "bedToBigBed" "Rscript" "gtars")
744744

745745
for cmd in ${requiredCommands[@]}; do
746746
if ! is_executable $cmd; then
@@ -792,81 +792,52 @@ echo -e "-----------------------------------------------------------"
792792
echo -e "Checking bulker installation... "
793793
BULKER_INSTALL=0
794794

795-
if ! is_executable "docker"; then
796-
DOCKER=1
795+
796+
if ! is_executable "bulker"; then
797+
echo $(warn "WARNING: To use bulker, pip install bulker and checkinstall again.")
798+
printf "\n"
799+
BULKER_INSTALL=1
797800
else
798-
DOCKER=0
801+
BULKER_INSTALL=0
802+
echo -e $(success "SUCCESS: bulker")
799803
fi
800804

801-
if ! is_executable "singularity"; then
802-
SINGULARITY=1
805+
CWD=$(pwd)
806+
807+
if [ -f "sample_pipeline_interface.yaml" ]; then
808+
IFACE="sample_pipeline_interface.yaml"
809+
CRATE=$(cat $IFACE | grep 'bulker_crate' | tr " " "\n" | tail -n 1)
803810
else
804-
SINGULARITY=0
811+
IFACE=$(curl https://raw.githubusercontent.com/databio/pepatac/master/sample_pipeline_interface.yaml)
812+
CRATE=$(echo $IFACE | tr " " "\n" | grep -A1 'bulker_crate' | tail -n 1)
805813
fi
806814

807-
if [ "$DOCKER" -eq 0 ]; then
808-
CMD_CHECK=$(docker --help)
809-
if [ $? -eq 0 ]; then
810-
echo -e $(success "SUCCESS: docker.")
811-
else
812-
echo -e $(warn "WARNING: Docker is a recognized command, but does not appear to be active. Please ensure docker is running and checkinstall again.")
813-
DOCKER=1
814-
fi
815+
yes n | bulker load $CRATE
816+
if [ $? -eq 0 ]; then
817+
echo $(warn "WARNING: Could not bulker load ${CRATE}. Check out https://bulker.databio.org/en/latest/install/.")
818+
printf "\n"
819+
BULKER_INSTALL=1
815820
fi
816821

817-
if [ "$SINGULARITY" -eq 0 ]; then
818-
echo -e $(success "SUCCESS: singularity.")
822+
if [ -f "$CWD/pipelines/pepatac.py" ]; then
823+
PIPELINE=$(cat "$CWD/pipelines/pepatac.py")
824+
else
825+
PIPELINE=$(curl https://raw.githubusercontent.com/databio/pepatac/master/pipelines/pepatac.py)
819826
fi
820827

821-
if [ "$DOCKER" -eq 1 ] && [ "$SINGULARITY" -eq 1 ]; then
822-
echo -e $(fail "ERROR: bulker")
823-
BULKER_INSTALL=1
828+
CMD_CHECK=$(bulker run ${CRATE} $PIPELINE --help)
829+
EXIT_CODE=$(echo $?)
830+
isActivatable=$(echo "${EXIT_CODE}" | awk '{ print $1+0; exit }')
831+
if [ "$isActivatable" -eq 0 ]; then
832+
BULKER_INSTALL=0
833+
echo -e $(success "SUCCESS: bulker run ${CRATE}")
824834
else
825-
if ! is_executable "bulker"; then
826-
echo $(warn "WARNING: To use bulker, pip install bulker and checkinstall again.")
827-
printf "\n"
828-
BULKER_INSTALL=1
829-
else
830-
BULKER_INSTALL=0
831-
echo -e $(success "SUCCESS: bulker")
832-
fi
833-
834-
CWD=$(pwd)
835-
836-
if [ -f "sample_pipeline_interface.yaml" ]; then
837-
IFACE="sample_pipeline_interface.yaml"
838-
CRATE=$(cat $IFACE | grep 'bulker_crate' | tr " " "\n" | tail -n 1)
839-
else
840-
IFACE=$(curl https://raw.githubusercontent.com/databio/pepatac/master/sample_pipeline_interface.yaml)
841-
CRATE=$(echo $IFACE | tr " " "\n" | grep -A1 'bulker_crate' | tail -n 1)
842-
fi
843-
844-
yes n | bulker load $CRATE
845-
if [ $? -eq 0 ]; then
846-
echo $(warn "WARNING: Could not bulker load ${CRATE}. Check out https://bulker.databio.org/en/latest/install/.")
847-
printf "\n"
848-
BULKER_INSTALL=1
849-
fi
850-
851-
if [ -f "$CWD/pipelines/pepatac.py" ]; then
852-
PIPELINE=$(cat "$CWD/pipelines/pepatac.py")
853-
else
854-
PIPELINE=$(curl https://raw.githubusercontent.com/databio/pepatac/master/pipelines/pepatac.py)
855-
fi
856-
857-
CMD_CHECK=$(bulker run ${CRATE} $PIPELINE --help)
858-
EXIT_CODE=$(echo $?)
859-
isActivatable=$(echo "${EXIT_CODE}" | awk '{ print $1+0; exit }')
860-
if [ "$isActivatable" -eq 0 ]; then
861-
BULKER_INSTALL=0
862-
echo -e $(success "SUCCESS: bulker run ${CRATE}")
863-
else
864-
echo $(warn "WARNING: Could not activate the bulker crate, ${CRATE}. Check out https://bulker.databio.org/en/latest/install/.")
865-
printf "\n"
866-
BULKER_INSTALL=1
867-
fi
835+
echo $(warn "WARNING: Could not activate the bulker crate, ${CRATE}. Check out https://bulker.databio.org/en/latest/install/.")
836+
printf "\n"
837+
BULKER_INSTALL=1
868838
fi
869839

840+
870841
################################################################################
871842
echo -e "-----------------------------------------------------------"
872843
echo -e " PEPATAC checkinstall results "
@@ -883,18 +854,6 @@ else
883854
echo -e $(fail "ERROR: PEPATAC cannot be run via conda.")
884855
fi
885856

886-
if [ "$DOCKER" -eq 0 ]; then
887-
echo -e $(success "SUCCESS: PEPATAC can be run using docker!")
888-
else
889-
echo -e $(fail "ERROR: PEPATAC cannot be run using docker.")
890-
fi
891-
892-
if [ "$SINGULARITY" -eq 0 ]; then
893-
echo -e $(success "SUCCESS: PEPATAC can be run using singularity!")
894-
else
895-
echo -e $(fail "ERROR: PEPATAC cannot be run using singularity.")
896-
fi
897-
898857
if [ "$BULKER_INSTALL" -eq 0 ]; then
899858
echo -e $(success "SUCCESS: PEPATAC can be run using bulker!")
900859
else

0 commit comments

Comments
 (0)