Skip to content

Add new method: LINGER#54

Open
emvg wants to merge 3 commits into
saezlab:mainfrom
emvg:feature/linger
Open

Add new method: LINGER#54
emvg wants to merge 3 commits into
saezlab:mainfrom
emvg:feature/linger

Conversation

@emvg

@emvg emvg commented Apr 23, 2026

Copy link
Copy Markdown

Integration of a New Method: LINGER

LIfelong Neural network for GEne Regulation : LINGER

Overview

We added :

  • A rule to download prior knowledge used by LINGER (pre-trained networks).
  • A definition file for Singularity (I did not use the dwn_image rule, but I can upload the ready .sif image to Zenodo if needed)
  • The relevant files to support the parallelized version of LINGER (see Linger Parallelization Durenlab/LINGER#75)
  • Original LINGER implementation with final cell population GRNs produced from the three LINGER outputs : TF binding potential, cis-regulatory network and trans-regulatory network (Details)

@emvg
emvg marked this pull request as draft April 23, 2026 09:06
@emvg
emvg marked this pull request as ready for review April 23, 2026 09:09
@PauBadiaM

Copy link
Copy Markdown
Collaborator

Hi @emvg,

Sorry for the slow reply, I was tied up with other projects. This is great work, thanks a lot for putting it together. LINGER was high on my list to include and I never had the bandwidth, so this is really appreciated.

The implementation itself looks solid. The config registration, the output naming, the linger_prior download, and the scripts are all in place. The main thing still missing is the generation of the per-method prior knowledge, specifically the TSS annotation.

Each method needs its own dbs/hg38/gen/tss/<method>.bed.gz, produced by a gen_tss_<method> rule. We build the method list for the TSS analysis automatically from the config, so as soon as LINGER is registered the genomic evaluation will look for dbs/hg38/gen/tss/linger.bed.gz and fail without it. You can see how the others do it in:

  • workflow/rules/dbs/tss.smk (add a gen_tss_linger rule, plus the matching entry in the localrules: line)
  • workflow/scripts/dbs/gen/tss/ (one script per method)

The bed should reflect the gene/TSS annotation LINGER actually uses, so the genomic comparison stays fair.
Once the TSS rule is in, the method should flow through the full benchmark. Happy to help if anything about that step is unclear.

And yes, with this added we would be glad to discuss including you as an author, since the paper is still in revision. Thanks again, this is a really nice contribution! 😄

@emvg

emvg commented Jul 3, 2026

Copy link
Copy Markdown
Author

Hi @PauBadiaM,

Thank you for the feedback, it is much appreciated!

I could not find any TSS annotation file in LINGER priors.

The CRE–gene associations are pre-encoded in dbs/lingerGRN/data_bulk/RE_gene_corr_hg19.bed and peaks from GRETA's datasets are intersected against this file at runtime, inheriting CRE-gene associations without needing a TSS annotation directly.

To identify which TSS annotation was originally used to build this file, I used RE_gene_corr_hg19.bed distance column, which indicates the bulk prior was built from UCSC refGene.

I then mirrored the get_TSS_ensembl logic found in LINGER_tr.py using the UCSC hg38 equivalent already present in the workflow via gen_genome_inferelator.

I contacted @durenzn to confirm but have not yet received a reply. If a different source is identified the GTF input can easily be swapped.

@PauBadiaM

Copy link
Copy Markdown
Collaborator

Sounds good! Could you please also share a link to download the compiled singularity image if you have it available?

@emvg

emvg commented Jul 11, 2026

Copy link
Copy Markdown
Author

Sure, here is the Zenodo record.

@PauBadiaM

Copy link
Copy Markdown
Collaborator

Hi @emvg ,

Cool! Got some results I'd like to discuss with you offline, would you mind sharing your email address here? Alternatively you can message me on linkedin: www.linkedin.com/in/pau-badia-i-mompel-347b8016b

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

Successfully merging this pull request may close these issues.

2 participants