substance / texture

A visual editor for research.
MIT License
1k stars 83 forks source link

[Feature] Asset-level source files (WIP) #1245

Open michael opened 5 years ago

michael commented 5 years ago

Description

We want the ability to associate files directly with a figure/figure panel. A common use case for this is attaching datasets to individual figures.

This is a work in progress addressing the user stories from #1276.

Proposed Source XML (TextureJATS)

Two figures using the same dataset, one figure uses another.

<fig id="fig1">
  <label>Figure 1</label>
  <caption id="fig1-caption">
    <title>Figure 1 title</title>
    <p id="fig1-caption-p1">Figure 1 caption</p>
  </caption>
  <graphic id="fig1-graphic" mime-subtype="jpeg" mimetype="image" xlink:href="fig1.jpg" />
  <xref ref-type="supplementary-material" rid="source-data-1" />
</fig>
<fig id="fig2">
  <label>Figure 2</label>
  <caption id="fig2-caption">
    <title>Figure 2 title</title>
    <p id="fig2-caption-p1">Figure 2 caption</p>
  </caption>
  <graphic id="fig2-graphic" mime-subtype="jpeg" mimetype="image" xlink:href="fig2.jpg" />
  <xref ref-type="supplementary-material" rid="source-data-1" />
</fig>
<fig id="fig3">
  <label>Figure 3</label>
  <caption id="fig3-caption">
    <title>Figure 3 title</title>
    <p id="fig3-caption-p1">Figure 3 caption</p>
  </caption>
  <graphic id="fig3-graphic" mime-subtype="jpeg" mimetype="image" xlink:href="fig3.jpg" />
  <xref ref-type="supplementary-material" rid="source-data-2" />
</fig>
<table-wrap id="table1">
  <label>Table 1</label>
  <caption><p>Table 1 caption</p></caption>
  ...
  <xref ref-type="supplementary-material" rid="source-data-3" />
</table-wrap>
<media mimetype="video" mime-subtype="mp4" id="video1" xlink:href="elife-00666-video1.mp4">
  <label>Video 1</label>
  <caption>
    <title>A description of the eLife editorial process.</title>
    <p>Video source data legend.</p>
  </caption>
  <xref ref-type="supplementary-material" rid="source-data-4" />
</media>

<sec sec-type="supplementary-files">
  <title>Supplementary Files</title>
  <supplementary-material id="source-data-1" content-type="sdata" mimetype="text" mime-sub-type="csv" xlink:href="source-data-1.csv">
    <label>Supplementary File 1</label>
    <caption>
      <title>Orthogroup clustering analysis</title>
    </caption>
  </supplementary-material>
  <supplementary-material id="source-data-2" content-type="sdata" mimetype="text" mime-sub-type="csv" xlink:href="source-data-2.csv">
    <label>Supplementary File 2</label>
    <caption>
      <title>Orthogroup clustering analysis</title>
      <p>Lorem ipsum dolor sit amet</p>
    </caption>
  </supplementary-material>
  <supplementary-material id="source-data-3" content-type="sdata" mimetype="text" mime-sub-type="xlsx" xlink:href="source-data-3.xlsx">
    <label>Supplementary File 3</label>
    <caption>
      <title>Representative curves of steady-state kinetic analyses for each IGF1R protein characterized</title>
      <p>Each data point was performed in duplicate and is shown separately.</p>
    </caption>
  </supplementary-material>
  <supplementary-material id="source-data-4" content-type="sdata" mimetype="text" mime-sub-type="xlsx" xlink:href="elife-00666-video1-code1.xlsx">
    <label>Supplementary File 4</label>
    <caption>
      <title>Title of the source code</title>
      <p>Legend of the source code.</p>
    </caption>
  </supplementary-material>
</sec>

We propose to allow <xref> inside of a <fig> element (currently not allowed in JATS). We would then not need to abuse the caption for associating files with figures or putting <supplementary-material> inside the caption.

Proposal

image

Supplementary files are globally available in a special managed section "Supplementary files". It serves as a collection to keep all available files of a document in one place. What a <ref-list> is to references this section is to supplementary files.

Possible user interactions:

Considerations

michael commented 5 years ago

@dalapeyre what is your opinion about allowing <xref> inside the <fig> element directly, in order to link other resources directly to a figure?

michael commented 5 years ago

@Melissa37 @evabenitoembo @source-data I'd like to put a priority on this topic as we want to move on with implementation of this in the current dev iteration. We'd need to find agreement on the TextureJATS tagging, and define a translation layer for eLife if needed.

Could you all review and update the user stories, including XML requirements for this topic? Once we have that, it would be a good time to set up a call and discuss and refine together the proposal.

Melissa37 commented 5 years ago

@michael sounds good. Have pinged @evabenitoembo by email and we'll get back to you next week I hope

dalapeyre commented 5 years ago

On Apr 5, 2019, at 6:13 AM, Michael Aufreiter notifications@github.com wrote:

@dalapeyre what is your opinion about allowing inside the element directly, in order to link other resources directly to a figure?

At the next JATS Standing Committee meeting, we are discussing ways to connect a figure or table with the dataset(s) behind the figure/ table.

If you want to do it through allowing directly inside (not a bad idea at all), post that on the NISO comment list. Then the full Committee will discuss it, along with any other proposals to do the same.

The NISO list is:

https://groups.niso.org/apps/group_public/add_comment.php?document_id=21029

--Debbie

================================================================ Deborah A Lapeyre mailto:dalapeyre@mulberrytech.com Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Phone: 301-315-9631 (USA) Suite 207 Fax: 301-315-8385 Rockville, MD 20850

Mulberry Technologies: Consultancy for XML, XSLT, and Schematron

dalapeyre commented 5 years ago

There are some other decisions the JATS Standing Committee made that you guys should know about:

1) Block alternatives

2) Repeated figure and table labels and captions

I will attach an explanation of Block Alternatives in this message, and of multi-lingual table and figure labels and captions in the next.

--Debbie

================================================================ Deborah A Lapeyre mailto:dalapeyre@mulberrytech.com Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Phone: 301-315-9631 (USA) Suite 207 Fax: 301-315-8385 Rockville, MD 20850

Mulberry Technologies: Consultancy for XML, XSLT, and Schematron

dalapeyre commented 5 years ago

There are some other decisions the JATS Standing Committee made that you guys should know about:

--Debbie

================================================================ Deborah A Lapeyre mailto:dalapeyre@mulberrytech.com Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Phone: 301-315-9631 (USA) Suite 207 Fax: 301-315-8385 Rockville, MD 20850

Mulberry Technologies: Consultancy for XML, XSLT, and Schematron

michael commented 5 years ago

Thank you @dalapeyre ! Glad to hear you support that idea. :)

I just posted a comment: https://groups.niso.org/apps/group_public/view_comment.php?comment_id=814&add_comment=1

@dalapeyre email attachments are not possible I think, you'd need to use the Github interface to attach the files.

dalapeyre commented 5 years ago

Attach them to WHAT at Github? My two email attachments are just descriptions of JATS SC decisions that MAY OR MAY NOT be related to any of your items, that is for you to decide.

I replied all, so some of you should have this in your inbox.

That is one of the things I find annoying on Github, if you know WHERE to put it, its easy, but if you do not know... or there is not good "where"...

Sorry

--Debbie

On Apr 5, 2019, at 11:49 AM, Michael Aufreiter notifications@github.com wrote:

Thank you @dalapeyre ! Glad to hear you support that idea. :)

I just posted a comment: https://groups.niso.org/apps/group_public/view_comment.php?comment_id=814&add_comment=1

@dalapeyre email attachments are not possible I think, you'd need to use the Github interface to attach the files.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

================================================================ Deborah A Lapeyre mailto:dalapeyre@mulberrytech.com Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Phone: 301-315-9631 (USA) Suite 207 Fax: 301-315-8385 Rockville, MD 20850

Mulberry Technologies: Consultancy for XML, XSLT, and Schematron

jcolomb commented 5 years ago

Hi, I am new in the discussion, and I like the whole texture idea very much! Here my comments as a reproducible report enthusiast.

On top of data set, one might want to link a key reagent table or a protocol, or an analysis code, you might find some inspiration looking at how profeza is doing this: https://www.profeza.com

Do I understand it right that tagging the supplementary files to tell what kind of file it is will come later?

Can the link be a doi link or do you plan on attaching files only ?

source-data commented 5 years ago

SourceData user stories

Narrative

Extended narrative from the author, reader and publisher's perspective: https://docs.google.com/document/d/12FBtfwFPjp78XKclNhp4NzDqnuCM1es1RMRBd1xL_t4/edit?usp=sharing

SUMMARY

Objects: Package, Figure, Title, Caption, Label, File, URL, Accession, Link

Users:

As an Author:

As a Recipient:

As a Publisher:

obuchtala commented 5 years ago

@source-data Thanks for this detailed list. Will discuss with @michael next week, and also think about a 'normalized' format for user stories.

obuchtala commented 5 years ago

@Melissa37 could you help consolidating above user stories?

michael commented 5 years ago

Thank you @source-data for the user stories. It would be great if you could consolidate those into #1276 and coordinate with Melissa. We will use this ticket solely for discussing the proposal (will delete the user stories now).

michael commented 5 years ago

@Melissa37 @source-data are the SourceData user stories already consolidated in #1276 or are you still working on that.

Melissa37 commented 5 years ago

@michael I discussed this with @JGilbert-eLife this morning - he added them but has not heard back from @source-data whether they are OK

JGilbert-eLife commented 5 years ago

Looking back, I think I might have confused myself and I didn't directly ask @source-data about the user stories in #1276. Very sorry if there was any confusion there!