Genentech / gReLU

gReLU is a python library to train, interpret, and apply deep learning models to DNA sequences.
https://genentech.github.io/gReLU/
MIT License
228 stars 23 forks source link

How to change the location of genome downloading path? #52

Open HelloWorldLTY opened 1 month ago

HelloWorldLTY commented 1 month ago

Hi, I am interested in using other genome, which has been downloaded into certain paths. However, it seems that I cannot control the location of downloaded files. As I do not have much space in the home path, I suggest considering an instruction for downloading file location.

Here is an example:

    input_seqs = grelu.sequence.format.convert_input_type(
        input_intervals,
        output_type="strings",
        genome=gf
    )

The information will be:

18:00:34 | INFO | Downloading genome from Local. Target URL: /home/tl688/pitl688/enformer_fine_tuning/data/***.fa...
18:00:36 | INFO | Genome download successful, starting post processing...
18:00:36 | INFO | name: ***.fa
18:00:36 | INFO | local name: ***
18:00:36 | INFO | fasta: /home/tl688/.local/share/genomes/***.fa