Skip to content

Instantly share code, notes, and snippets.

@wbazant
Created January 18, 2017 19:52
Show Gist options
  • Save wbazant/0276ff12276eb12a154f75a4b2a17092 to your computer and use it in GitHub Desktop.
Save wbazant/0276ff12276eb12a154f75a4b2a17092 to your computer and use it in GitHub Desktop.
echo "Clear previous Ensembl data from the public all subdirs of ${ATLAS_FTP}/bioentity_properties"
for dir in ensembl mirbase reactome go interpro wbps; do
rm -rf ${ATLAS_FTP}/bioentity_properties/${dir}/*
done
echo "Copy all array design mapping files into the public Ensembl data directory (this directory is used only for Solr index build)"
cp ${ATLAS_PROD}/bioentity_properties/ensembl/*.A-*.tsv ${ATLAS_FTP}/bioentity_properties/ensembl/
pushd ${ATLAS_PROD}/bioentity_properties/ensembl
echo "Copy all Ensembl matrices to the public Ensembl data directory"
for species in $(ls *.tsv | awk -F"." '{print $1}' | sort | uniq); do
for bioentity in ensgene enstranscript ensprotein; do
cp $species.$bioentity.tsv ${ATLAS_FTP}/bioentity_properties/ensembl/
done
done
popd
pushd ${ATLAS_PROD}/bioentity_properties/wbps
echo "Copy all WBPS matrices to the public WBPS data directory"
for species in $(ls *.tsv | awk -F"." '{print $1}' | sort | uniq); do
for bioentity in wbpsgene wbpstranscript wbpsprotein; do
cp $species.$bioentity.tsv ${ATLAS_FTP}/bioentity_properties/wbps/
done
done
popd
echo "Copy all files to the other public data directories"
for dir in mirbase reactome go interpro; do
cp ${ATLAS_PROD}/bioentity_properties/${dir}/*.tsv ${ATLAS_FTP}/bioentity_properties/${dir}/
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment