Skip to content

Commit

Permalink
python package
Browse files Browse the repository at this point in the history
  • Loading branch information
sureshhewabi committed Jan 26, 2024
1 parent e37d786 commit ee1e664
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions parser/process_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ def convert_dir(local_dir, project_identifier,writer_method, nopeaklist=False):
parser.add_argument('-w', '--writer', help='Save data to database or API')
try:
logger.info("process_dataset.py is running!")
print("process_dataset.py is running!")
main(parser.parse_args())
sys.exit(0)
except Exception as ex:
Expand Down
7 changes: 4 additions & 3 deletions scripts/runDataset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ fi

DATE=$(date +"%Y%m%d%H%M")
LOG_FILE_NAME="${JOB_NAME}/${PROJECT_ACCESSION}-${DATE}.log"
LOG_FILE_ERROR_NAME="${JOB_NAME}/${PROJECT_ACCESSION}-${DATE}-error.log"
JOB_NAME="${JOB_NAME}-${PROJECT_ACCESSION}"


Expand All @@ -65,6 +66,6 @@ sbatch -t 7-0 \
--mail-type=ALL \
--mail-user=${JOB_EMAIL} \
--job-name=${JOB_NAME} \
-o /dev/null \
-e /dev/null \
--wrap="python3 process_dataset -p ${PROJECT_ACCESSION} --dontdelete -w api"
-o ${LOG_FILE_NAME} \
-e ${LOG_FILE_ERROR_NAME} \
--wrap="process_dataset -p ${PROJECT_ACCESSION} --dontdelete -w api"

0 comments on commit ee1e664

Please sign in to comment.