forked from GlassLabGT/Python-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
OmarAlshamsi14/Python-scripts
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Welcome to the GeneSweeper! Written by: Abdulaziz Alajlan dump all CSV files in the same folder as the program.py file in order for code to run properly Sometimes entering product name gives incorrect output. if entering the full name of the product doesn't work enter a uniqe snippet of the product name The link file is used to get the meta gene details from the JGI website so that a fasta file can be created For the Links output file the result might be different depending on your product. Use the Link_Gen.py file to find out which part of the line variable is the gene length so you can get the correct link files */ Updates!! New features added: Now you can search for multiple products at the same time using commas. Now you can selec whether or not you want the CSV files deleted. // current bugs: Can't use delete csv files feature while also entering multiple products for search. /* Libraries used: tkinter os csv Functions: namer() [No parameters]: Renaming files from 1 to the number of files available. filter_and_append_to_csv(Input_file, output_file, product): Creates an empty CSV file, gives appropriate headers, runs through all numbered files and appends them to csv files on the condition that the product name is the same as the inputted product name given by the user. linkgen()[No parameters]: Creates an empty CSV file, gives appropriate headers, adds links to JGI pages by putting gene and scaffold IDs in the link address. delete_csv_files()[No parameters]: Deletes all CSV files besides output and link files. renamer() [Not used]: Renames output files to have the product name be incorporated to file name. fileautomation(): Runs all functions while creating the file address for the filter_and_append_to_csv() parameters. Process: Dump all CSV files into the program folder. Run the GeneSweeper to get the output file and a links file. Open each link in a links file with gene sequences length of longer than 1000, copy the amino acid sequence from the JGI website, and paste it into a fasta file.
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 100.0%