Comments (9)
Hi @lhendre, I believe the original DeepSEA data can be downloaded from this link and you may also find this repo useful if you want to recreate it yourself
from hyena-dna.
Hi, I will try that shortly and get back to you!
from hyena-dna.
So Im going to try recreating the data or using that data and renaming it. But to verify, the code is specifically looking for something with the naming convention of {self.data_path}/{split}_{self.ref_genome_version}_coords_targets.csv(link to the code below). That doesnt appear to exist or be created in the repo. That being said ill try the repo and try changing that name to the naming convention and using it instead
https://github.com/search?q=org%3AHazyResearch+coords_target&type=code
from hyena-dna.
Hi,
So I have run the above code to generate the data(specifically utilizing the repo you suggested). The issue is still the same in that im not getting a coords_target.csv file. I have been experimenting the existing tsv, npy and mat files to csv to see if that file is produced from there but I havent had much luck
from hyena-dna.
Hi @lhendre, apologies for the delay. So the coords_target.csv are just the debug_{train|valid|test}.tsv files but with some small modifications (remove sequence, add prefix to target column names, remove duplicates, save as csv) which can be done with this snippet:
def create_coord_target_files(file, name):
target_cols=pd.read_csv('data/deepsea_metadata.tsv', sep='\t')['File accession'].tolist() # metadata from build-deepsea-training-dataset repo
colnames=target_cols+['Chr_No','Start','End']
df = pd.read_csv(file, usecols=colnames, header=0)
df.drop_duplicates(inplace=True)
df.reset_index(drop=True, inplace=True)
df.rename(columns={k:f'y_{k}' for k in target_cols}, inplace=True)
df.to_csv(f'{name}_coords_targets.csv')
create_coord_target_files('debug_valid.tsv', 'val')
create_coord_target_files('debug_test.tsv', 'test')
create_coord_target_files('debug_train.tsv', 'train')
from hyena-dna.
Hi @cbirchsy, that appears to answer my questions! Im testing it now but this fills in the missing gaps. If this works would it make since for me to open a pr to update the instructions? And potentially adding in a small script for the create_coord_target_files?
from hyena-dna.
Hi, this appears to work for getting the preprocessing working, do let me know if it would make sense for me to add this in via a PR. We are right now trying to replicate the papers results regarding chromatin and are still running into some issues, so if there are any additional steps let me know, but we are still digging in on our side
from hyena-dna.
Hi, this appears to work for getting the preprocessing working, do let me know if it would make sense for me to add this in via a PR. We are right now trying to replicate the papers results regarding chromatin and are still running into some issues, so if there are any additional steps let me know, but we are still digging in on our side
I check your code, isn't output file out/train.tsv instead of train.mat, since your coordinate file read .csv?
from hyena-dna.
@jimmylihui are you referring to step 4?
Sorry for the delay, ended up switching jobs. Ill go back and double check this, but This uses a third party library to build the dataset and the instructions are here. The specific thing to notice is the save_debug_info flag is set to true.
If you dig into the build file Youll see it then creates the tsv file that is used in the coordinate reading file.
I will go back and double check this, but I can also lead a note to ensure there is no confusion if that is helpful
from hyena-dna.
Related Issues (20)
- Predicting probability vectors of equal length to input sequence
- How to recreate the result of DNABERT in paper HOT 1
- How to convert the batch cell from the GenomicBenchmarks data to user data? CUDA memory overload if running "Single example" cell multiple times to produce embeddings.
- How to pre-train on custom dataset using hyena-dna
- need to swap layer norm op for triton-based layer norm? HOT 2
- Reproducing the HyenaDNA results on NT Benchmarks
- Running with standard Huggingface config and trainer files does not give optimal results
- The default for pretrained_model_path in config files is a personal directory
- Bugs when I try to access the embeddings HOT 3
- Question: How to generate DNA sequence or sequence embeddings based on own bed file
- How can I access the dataset--genomic_benchmark I got timeout issue
- Failure to reproduce the hyenaDNA reported results on NT tasks. HURRY! HURRY HURRY
- Symbol lookup error
- Error when Resuming pre-training
- Training loss becomes NAN during pretraining HOT 1
- Questions about pre-training with multiple sequences HOT 1
- Inquire about GWAS tasks
- install problem
- CUDA out of memory occurs when the training length reaches 450k on a100 HOT 1
- Where are genomic_bench_dataloader.py and nucleotide_transformer_dataloader.py located?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hyena-dna.