Skip to content

Querymodel "ArcTables" property dedupes duplicate ArcTable names #22

@Brilator

Description

@Brilator

Describe the bug

If an ARC contains duplicate table names (i.e. name of the process referred from table sheet name) these are made unique in ArcTables, but not Studies and Assays.

To Reproduce
Steps to reproduce the behavior:

Clone and load ARC with duplicate table names, e.g. https://git.nfdi4plants.org/usadellab/ribes_nigrum_genome

#r "nuget: ARCtrl"
#r "nuget: ARCtrl.QueryModel"

open ARCtrl
open ARCtrl.QueryModel

let arcPath = "ribes_nigrum_genome"
let arc = ARC.load(arcPath)

arc.ISA.Value.ArcTables.TableNames

[
    arc.ISA.Value.Studies |> Seq.iter (fun x -> printfn "%A" x.TableNames)
    arc.ISA.Value.Assays |> Seq.iter (fun x -> printfn "%A" x.TableNames)
]

Here the duplicate "Plant growth" is made unique:

- arc.ISA.Value.ArcTables.TableNames;;
val it: string list =
  ["Plant growth"; "plant_growth"; "Plant growth 1"; "RNASeq";
   "DNA_library_and_sequencing"; "metabolite_analysis"; "qRTPCR"]

Here it is not:

- [
-     arc.ISA.Value.Studies |> Seq.iter (fun x -> printfn "%A" x.TableNames)
-     arc.ISA.Value.Assays |> Seq.iter (fun x -> printfn "%A" x.TableNames)
- ];;
["Plant growth"]
["plant_growth"]
["Plant growth"]
["RNASeq"]
["DNA_library_and_sequencing"]
["metabolite_analysis"]
["qRTPCR"]
val it: unit list = [(); ()]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions