gffutils icon indicating copy to clipboard operation
gffutils copied to clipboard

Better handling of merged components

Open innovate-invent opened this issue 5 years ago • 1 comments

PR #152 resolved an issue that came up while trying to handle calling merge_all() repeatedly.

I attempted to create a criteria that would exclude children of a record created by merge(). This is necessary otherwise the hierarchy of children to parents gets mangled on the second pass. I abandoned my attempt when I couldn't land on a consistent way to determine that a record was a component record.

The child attribute isn't unique to the merge() output, and setting the source to something like 'gffutils_merge' isn't reliable as applications will want to set it to their own name. The only solution I could come up with is setting a 'merged' flag in the component record attributes which just adds clutter in the data.

Can anyone suggest a better alternative to setting a custom attribute?

innovate-invent avatar Dec 30 '19 18:12 innovate-invent

Sorry for the painfully long time before replying. If this is still an issue, can you provide a concrete example I can use to investigate options?

daler avatar Jun 05 '22 13:06 daler

@innovate-invent, please reopen (and include a concrete example I could use to test) if this is still an issue.

daler avatar Feb 05 '23 21:02 daler