<commit_before>#!/bin/bash

#upload.sh
#---------

#Usage: upload.sh 131 "Sample123" male vcf file.vcg.gz

CURL=/usr/bin/curl
CURLOPTS=

URL=https://${OMICIA_API_LOGIN}:${OMICIA_API_PASSWORD}@api.om<EMAIL>.com

PROJECT_ID=$1
LABEL=$2
# sex must be one of: male, female, unspecified
SEX=$3
# use vcf for uncompressed or vcf.gz/bz2/Z for compressed (preferred)
FORMAT=$4
FILE=$5

#upload genome
$CURL $CURLOPTS --data "$URL/projects/$PROJECT_ID/genomes?genome_label=$LABEL&genome_sex=$SEX&assembly_version=hg19&format=$FORMAT" --upload-file $FILE
echo<commit_msg>Fix curl example<commit_after>#!/bin/bash

#upload.sh
#---------

#Usage: upload.sh 131 "Sample123" male vcf file.vcg.gz

CURL=/usr/bin/curl
CURLOPTS=

URL=http://api.omicia.com

PROJECT_ID=$1
LABEL=$2
# sex must be one of: male, female, unspecified
SEX=$3
# use vcf for uncompressed or vcf.gz/bz2/Z for compressed (preferred)
FORMAT=$4
FILE=$5

#upload genome
$CURL $CURLOPTS -u ${OMICIA_API_LOGIN}:${OMICIA_API_PASSWORD} "$URL/projects/$PROJECT_ID/genomes?genome_label=$LABEL&genome_sex=$SEX&assembly_version=hg19&format=$FORMAT" --upload-file $FILE
echo
{'fraction_non_alphanumeric': 0.1647269471799463, 'fraction_numerical': 0.025067144136078783, 'mean_word_length': 5.538011695906433, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4505035', 'n_tokens_mistral': 474, 'n_tokens_neox': 439, 'n_words': 88}