Skip to content

Commit

Permalink
Updated to match new zenodo URLs.
Browse files Browse the repository at this point in the history
Recovered matplotlib version.
  • Loading branch information
lingfeiwang committed Nov 3, 2023
1 parent b313d5b commit d3449fe
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 12 deletions.
8 changes: 5 additions & 3 deletions .github/actions/zenodo-url-translate/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Lingfei Wang, 2022. All rights reserved.
# Lingfei Wang, 2022, 2023. All rights reserved.
name: Translate Zenodo URL to follow the latest DOI version

inputs:
Expand All @@ -20,8 +20,10 @@ runs:
run: |
set -eo pipefail
s0='${{ inputs.url }}'
s1="$(curl -Ls -o /dev/null -w %{url_effective} "$s0")"
s2="$s1/${s0#http[s]*://zenodo.org/record/[^/]*/}"
s2="${s0#http[s]*://zenodo.org/records/[^/]*/}"
s1="${s0%/$s2}"
s1="$(curl -Ls -o /dev/null -w %{url_effective} "$s1")"
s2="$s1/$s2"
echo "Old URL: $s0"
echo "New URL: $s2"
echo "url=$s2" >> $GITHUB_OUTPUT
2 changes: 1 addition & 1 deletion .github/workflows/ci-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
id: zenodo-url-translate
uses: ./.github/actions/zenodo-url-translate
with:
url: https://zenodo.org/record/6858494/files/inference-blood1.tar.xz?download=1
url: https://zenodo.org/records/6858494/files/inference-blood1.tar.xz?download=1
- name: Test dataset
uses: ./.github/actions/inference-test-dataset
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
id: zenodo-url-translate
uses: ./.github/actions/zenodo-url-translate
with:
url: https://zenodo.org/record/6858494/files/inference-blood1.tar.xz?download=1
url: https://zenodo.org/records/6858494/files/inference-blood1.tar.xz?download=1
- name: Test dataset
uses: ./.github/actions/inference-test-dataset
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-inference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
id: zenodo-url-translate
uses: ./.github/actions/zenodo-url-translate
with:
url: https://zenodo.org/record/6858494/files/inference-skin1.tar.xz?download=1
url: https://zenodo.org/records/6858494/files/inference-skin1.tar.xz?download=1
- name: Test dataset
uses: ./.github/actions/inference-test-dataset
with:
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
id: zenodo-url-translate
uses: ./.github/actions/zenodo-url-translate
with:
url: https://zenodo.org/record/6858494/files/inference-blood1.tar.xz?download=1
url: https://zenodo.org/records/6858494/files/inference-blood1.tar.xz?download=1
- name: Test dataset
uses: ./.github/actions/inference-test-dataset
with:
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
id: zenodo-url-translate
uses: ./.github/actions/zenodo-url-translate
with:
url: https://zenodo.org/record/6858494/files/inference-blood2.tar.xz?download=1
url: https://zenodo.org/records/6858494/files/inference-blood2.tar.xz?download=1
- name: Test dataset
uses: ./.github/actions/inference-test-dataset
with:
Expand Down
1 change: 0 additions & 1 deletion doc/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ if [ "a$STEPS" == "a" ] || [ "a$(( STEPS & 2 ))" != "a0" ]; then
pip install $PIP_OPTIONS --no-deps pyDNase "$LOCAL_VERSION"
fi
pip install $PIP_OPTIONS $(pip check | grep ', which is not installed[.]$' | awk -F ',' '{print $(NF-1)}' | awk '{print $NF}' | grep -vi '^pyDNase$')
pip install $PIP_OPTIONS matplotlib==3.7.1
fi
if [ "a$STEPS" == "a" ] || [ "a$(( STEPS & 4 ))" != "a0" ]; then
#Update homer
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def pkg_setup():
long_description_content_type='text/x-rst',
url=url,
scripts=['bin/dictys','bin/dictys_helper'],
install_requires=['numpy','pandas','docutils','h5py','pyro-ppl','scipy','networkx','pybedtools','pyDNase','threadpoolctl','joblib','torch','matplotlib==3.7.1','adjustText','jupyter'],
install_requires=['numpy','pandas','docutils','h5py','pyro-ppl','scipy','networkx','pybedtools','pyDNase','threadpoolctl','joblib','torch','matplotlib','adjustText','jupyter'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
Expand Down
2 changes: 1 addition & 1 deletion src/dictys/chromatin.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def _motif_postproc(dret,fi_exp:str,fo_bed:str,fo_wellington:str,fo_homer:str)->
#Remove motifs having no TF in current dataset
t1=[not x.startswith('_') for x in namem]
dw,dh=[x[:,t1] for x in [dw,dh]]
namem,=namem[t1]
namem=namem[t1]
if len(namem)!=len(set(namem)):
from collections import Counter
t1=[x[0] for x in Counter(namem).items() if x[1]>1][:3]
Expand Down
2 changes: 1 addition & 1 deletion utils/conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ requirements:
- pyDNase
- threadpoolctl
- joblib
- matplotlib ==3.7.1
- matplotlib
- jupyter
- adjustText

Expand Down

0 comments on commit d3449fe

Please sign in to comment.