Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lab files analysis .sh file #17

Open
jcasadogp opened this issue May 28, 2023 · 1 comment
Open

Lab files analysis .sh file #17

jcasadogp opened this issue May 28, 2023 · 1 comment

Comments

@jcasadogp
Copy link
Collaborator

When I tried to populate the DB with the command:

python3 main.py populateDB --info_file ../../Desktop/local_thesis_files/yml_files/study_information.yml

The study_information.yml contained these directories for files:

value: /Users/julia/Desktop/local_thesis_files/BT_mucin_RNAseq_3.txt

I got the following error (which started a cascade or errors):

ls: /Users/julia/Desktop/local_thesis_files/BT_mucin_RNAseq_3.txt/: Not a directory

This was because I tried to populate a single file that was not contained in a directory. The code expects a directory, even if it only contains 1 file, for the moment.

@jcasadogp
Copy link
Collaborator Author

The problems come from the format that is asked:

First, it asks for technical replicate files which end with _n.txt, being n the number of technical replicate.
It is also related with how paths and file names are formed in the code. In lines such as:

These lines do not work if, instead of a directory, a single file is passed:
https://github.com/jcasadogp/bacterial_growth/blob/49c6309843c82d858494e0b2c66d5e1004c2653b/src/import_into_database/populate_db.py#L88-L89

From the previous lines we get the variable files_dir. Here, it passes files_diras an argument to the .sh file. It MUST be a directory; if not, the .sh will give errors.
https://github.com/jcasadogp/bacterial_growth/blob/49c6309843c82d858494e0b2c66d5e1004c2653b/src/import_into_database/populate_db.py#L145-L146

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant