-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: 34
-
Fix Version/s: assembly_annotations
-
Component/s: Basic-Nucl
-
Story Points:13
-
Epic Link:
-
Sprint:DEV-35-2, DEV-35-3, DEV-35-4
-
Affect Type:Userdefined
Annotations for chromosomes are often stored in a common GTF file - different lines in the file have different sequence names. See, for example:
- hg19 chromosomes on UCSC: http://hgdownload.cse.ucsc.edu/goldenpath/hg19/chromosomes/
- the corresponding genes: http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/genes/
It is very hard to work with this data in the current UGENE version 34, as the GTF files are loaded too long.
This issue proposes a workaround for this issue - possibility to extract annotations for specific sequences only into a new GTF file.
More exactly, the following should be done:
- If a user opens a GTF file and the file is big enough, the procedure described below is applied. As for the "big enough" criteria, 30 Mb *.gtf file or 2Mb *.gtf.gz limit is proposed. For example, when "chr1" lines from "hg19.knownGene.gtf.gz" are saved into a separate file, it takes ~26 Mb and loads into UGENE fast enough on my computer.
- Thus, when a smaller file is loaded, it should be opened commonly.
- When the file is big enough, a dialog appears:
- Title: "Open File or Extract Data by Sequences"
- Buttons: "Help", "Open file", "Extract by sequences", "Cancel"
- Content:
The size of the "file_name.gtf" is XX Mb. It may take some time to parse the data. Probably, the file contains annotations that belong to different sequences (chromosomes). In case only some sequences are investigated, it is recommended to extract annotations that belong to these sequences into a separate file. Usage of the extracted annotations file of a smaller size will help to decrease the time needed for loading the data.
- If "Open file" is clicked, the GTF file is opened commonly.
- If "Cancel" is clicked, the GTF file opening is cancelled.
- If "Extract by sequences" is clicked, another dialog appears:
- Title: "Extract Annotations by Sequences".
- Buttons: "Help", "Extract", "Cancel".
- Content:
- a table with columns "Sequence name", "Number of annotations" and checkboxes.
- "Save extracted annotations to file" parameter with a text field for the GTF file path and a browse ("...") button. The file browse dialog should have filter for "*.gtf" files.
- When the dialog is opened the input GTF file is parsed - all lines are read, but not yet parsed. Only the beginning of each line is read with the sequence name. The task is collecting the sequence names and the number of lines per each sequence name.
- An icon with progress is visualized in the table while the calculations are in progress.
- The "Cancel" is always available. If it is clicked, the task is cancelled, if required, the dialog closes and the GTF file opening is skipped.
- After sequence names are loaded, the user can check the required items.
- The "Extract" button is locked until the list of available sequences is collected. If it is clicked, the new GTF file is created with the required lines.
- In case the task is interrupted externally, e.g. by deleting or modified the input GTF file, the task is stopped and an error notification is pop up:
Extracting of annotations from "file_name" failed.