<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.2 20190208//EN" "http://jats.nlm.nih.gov/publishing/1.2/JATS-journalpublishing1.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="other" dtd-version="1.2" xml:lang="en">
    <front>
        <journal-meta>
            <journal-id journal-id-type="pmc">F1000Research</journal-id>
            <journal-title-group>
                <journal-title>F1000Research</journal-title>
            </journal-title-group>
            <issn pub-type="epub">2046-1402</issn>
            <publisher>
                <publisher-name>F1000 Research Limited</publisher-name>
                <publisher-loc>London, UK</publisher-loc>
            </publisher>
        </journal-meta>
        <article-meta>
            <article-id pub-id-type="doi">10.12688/f1000research.127348.1</article-id>
            <article-categories>
                <subj-group subj-group-type="heading">
                    <subject>Software Tool Article</subject>
                </subj-group>
                <subj-group>
                    <subject>Articles</subject>
                </subj-group>
            </article-categories>
            <title-group>
                <article-title>CircSeqAlignTk: An R package for end-to-end analysis of RNA-seq data for circular genomes</article-title>
                <fn-group content-type="pub-status">
                    <fn>
                        <p>[version 1; peer review: 1 approved, 2 approved with reservations]</p>
                    </fn>
                </fn-group>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author" corresp="yes">
                    <name>
                        <surname>Sun</surname>
                        <given-names>Jianqiang</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Conceptualization</role>
                    <role content-type="http://credit.niso.org/">Formal Analysis</role>
                    <role content-type="http://credit.niso.org/">Funding Acquisition</role>
                    <role content-type="http://credit.niso.org/">Investigation</role>
                    <role content-type="http://credit.niso.org/">Methodology</role>
                    <role content-type="http://credit.niso.org/">Project Administration</role>
                    <role content-type="http://credit.niso.org/">Software</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Original Draft Preparation</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Review &amp; Editing</role>
                    <uri content-type="orcid">https://orcid.org/0000-0002-3438-3199</uri>
                    <xref ref-type="corresp" rid="c1">a</xref>
                    <xref ref-type="aff" rid="a1">1</xref>
                </contrib>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>Fu</surname>
                        <given-names>Xi</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Review &amp; Editing</role>
                    <uri content-type="orcid">https://orcid.org/0000-0002-6472-6068</uri>
                    <xref ref-type="aff" rid="a2">2</xref>
                </contrib>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>Cao</surname>
                        <given-names>Wei</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Review &amp; Editing</role>
                    <xref ref-type="aff" rid="a1">1</xref>
                </contrib>
                <aff id="a1">
                    <label>1</label>Research Center for Agricultural Information Technology, National Agriculture and Food Research Organization, Tsukuba, 305-8604, Japan</aff>
                <aff id="a2">
                    <label>2</label>Graduate School of Agricultural and Life Sciences, The University of Tokyo, Tokyo, 113-8657, Japan</aff>
            </contrib-group>
            <author-notes>
                <corresp id="c1">
                    <label>a</label>
                    <email xlink:href="mailto:sun@biunit.dev">sun@biunit.dev</email>
                </corresp>
                <fn fn-type="conflict">
                    <p>No competing interests were disclosed.</p>
                </fn>
            </author-notes>
            <pub-date pub-type="epub">
                <day>27</day>
                <month>10</month>
                <year>2022</year>
            </pub-date>
            <pub-date pub-type="collection">
                <year>2022</year>
            </pub-date>
            <volume>11</volume>
            <elocation-id>1221</elocation-id>
            <history>
                <date date-type="accepted">
                    <day>19</day>
                    <month>10</month>
                    <year>2022</year>
                </date>
            </history>
            <permissions>
                <copyright-statement>Copyright: &#x00a9; 2022 Sun J et al.</copyright-statement>
                <copyright-year>2022</copyright-year>
                <license xlink:href="https://creativecommons.org/licenses/by/4.0/">
                    <license-p>This is an open access article distributed under the terms of the Creative Commons Attribution Licence, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
                </license>
            </permissions>
            <self-uri content-type="pdf" xlink:href="https://f1000research.com/articles/11-1221/pdf"/>
            <abstract>
                <p>RNA sequencing (RNA-seq) technology has now become one of the standard tools for studying biological mechanisms at the transcriptome level. Advances in RNA-seq technology have led to the emergence of a large number of publicly available tools for RNA-seq data analysis. Most of them target linear genome sequences although it is necessary to study organisms with circular genome sequences. For example, by studying the infection mechanisms of viroids which comprise 246&#x2013;401 nucleotides circular RNAs and target plants, tremendous economic and agricultural damage may be prevented. Unfortunately, using the available tools to construct workflows for the analysis of circular genome sequences is difficult, especially for non-bioinformaticians. To overcome this limitation, we present CircSeqAlignTk, an easy-to-use and richly documented R package. CircSeqAlignTk performs end-to-end RNA-seq data analysis, from alignment to the visualization of circular genome sequences, through a series of functions. Additionally, it implements a function to generate synthetic sequencing data that mimics real RNA-seq data obtained from biological experiments. CircSeqAlignTk not only provides an easy-to-use analysis interface for novice users but also allows developers to evaluate the performance of alignment tools and new workflows.</p>
            </abstract>
            <kwd-group kwd-group-type="author">
                <kwd>R package</kwd>
                <kwd>alignment</kwd>
                <kwd>visualisation</kwd>
                <kwd>small RNA-seq</kwd>
                <kwd>circular genome sequence</kwd>
                <kwd>viroid.</kwd>
            </kwd-group>
            <funding-group>
                <award-group id="fund-1" xlink:href="http://dx.doi.org/10.13039/501100001691">
                    <funding-source>Japan Society for the Promotion of Science</funding-source>
                    <award-id>21K05608</award-id>
                    <award-id>22H05179</award-id>
                </award-group>
                <funding-statement>This work was supported by JSPS KAKENHI [21K05608 and 22H05179].</funding-statement>
                <funding-statement>
                    <italic>The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.</italic>
                </funding-statement>
            </funding-group>
        </article-meta>
    </front>
    <body>
        <sec id="sec1" sec-type="intro">
            <title>Introduction</title>
            <p>RNA sequencing (RNA-seq) technology can offer insights into various biological mechanisms, such as gene stress responses and plant-virus infection mechanisms (
                <xref ref-type="bibr" rid="ref15">Vihervaara 
                    <italic toggle="yes">et al</italic>., 2018</xref>; 
                <xref ref-type="bibr" rid="ref17">Zanardo 
                    <italic toggle="yes">et al</italic>., 2019</xref>). The two essential processes for analysing RNA-seq data are aligning sequence reads to the genome sequence and summarising the alignment coverage. The widespread use of RNA-seq has encouraged the development of numerous tools for data analyses. For example, Bowtie2 (
                <xref ref-type="bibr" rid="ref6">Langmead &amp; Salzberg, 2012</xref>) and HISAT2 (
                <xref ref-type="bibr" rid="ref5">Kim 
                    <italic toggle="yes">et al</italic>., 2019</xref>) are well-known tools for read alignment, whereas SAMtools (
                <xref ref-type="bibr" rid="ref8">Li 
                    <italic toggle="yes">et al</italic>., 2009</xref>) and BEDtools (
                <xref ref-type="bibr" rid="ref9">Quinlan &amp; Hall, 2010</xref>) are for coverage calculation.</p>
            <p>The application of RNA-seq technology to various organisms, including those with circular genome sequences, such as bacteria, viruses, and viroids, provides clues to solving important biological and social problems. For example, studying the infection mechanisms of viroids, the simplest known infectious agents containing single-stranded circular non-coding RNAs comprised of 246&#x2013;401 nucleotides (
                <xref ref-type="bibr" rid="ref4">Hull, 2014</xref>), on plants may prevent tremendous economic and agricultural damage (
                <xref ref-type="bibr" rid="ref12">Soliman 
                    <italic toggle="yes">et al</italic>., 2012</xref>; 
                <xref ref-type="bibr" rid="ref10">Sastry, 2013</xref>). However, most existing tools are designed only for analysing RNA-seq data of organisms with linear genome sequences, such as animals and plants. Early efforts in developing tools to cater to such genomes often relied on complex workflows that involved a large number of tools written in different programming languages and were thus not user friendly, especially for non-bioinformaticians. Although several tools have recently been developed for aligning reads to circular genomes (
                <xref ref-type="bibr" rid="ref2">Ayad &amp; Pissis, 2017</xref>; 
                <xref ref-type="bibr" rid="ref1">Adkar-Purushothama 
                    <italic toggle="yes">et al</italic>., 2021</xref>), these tools often require advanced programming skills to compensate for a lack of rich documentation and example usage.</p>
            <p>Here, we present an easy-to-use R package, CircSeqAlignTk, which functions as a circular sequence alignment toolkit. It performs end-to-end analysis of RNA-seq data for circular genomes, mainly focusing on viroids. CircSeqAlignTk can be easily integrated with other R packages, enabling analysis to be accomplished in a uniform programming language environment.</p>
        </sec>
        <sec id="sec2" sec-type="methods">
            <title>Methods</title>
            <sec id="sec3">
                <title>Operation</title>
                <p>CircSeqAlignTk is an R package registered in the 
                    <ext-link ext-link-type="uri" xlink:href="https://doi.org/doi:10.18129/B9.bioc.CircSeqAlignTk">Bioconductor repository</ext-link> with its source code available on the 
                    <ext-link ext-link-type="uri" xlink:href="https://github.com/jsun/CircSeqAlignTk">GitHub</ext-link> and archived in Zenodo (
                    <xref ref-type="bibr" rid="ref14">Sun, Fu &amp; Cao, 2022</xref>). The package requires R (&#x2265; 4.2) and runs on most popular operating systems (OSs) including Linux, macOS X, and Windows.</p>
            </sec>
            <sec id="sec4">
                <title>Implementation</title>
                <p>The workflow analysis with CircSeqAlignTk (
                    <xref ref-type="fig" rid="f1">Figure 1</xref>) begins with the preparation of two types of data. The first type is RNA-seq data in FASTQ format. This data can be obtained from biological experiments; for example, according to their research objectives, researchers may sequence small RNAs from plants which may be infected by pathogens using high-throughput sequencing platforms. Alternatively, data can be downloaded from public databases such as the Sequence Read Archive (
                    <xref ref-type="bibr" rid="ref7">Leinonen 
                        <italic toggle="yes">et al</italic>., 2011</xref>); usually, these data are published by other researchers worldwide and can be used for re-analysis and meta-analysis. The other type of data is organism genome sequence data (e.g., the circular RNA sequence of a viroid) in FASTA format, which can be obtained from public databases such as GenBank (
                    <xref ref-type="bibr" rid="ref3">Benson 
                        <italic toggle="yes">et al</italic>., 2013</xref>).</p>
                <fig fig-type="figure" id="f1" orientation="portrait" position="float">
                    <label>Figure 1. </label>
                    <caption>
                        <title>Overview of workflow analyses and functions implemented in the CircSeqAlignTk package.</title>
                    </caption>
                    <graphic id="gr8" orientation="portrait" position="float" xlink:href="https://f1000research-files.f1000.com/manuscripts/139847/c3388352-3754-435c-b609-4b7633605208_figure1.gif"/>
                </fig>
                <p>After the preparation step, the 
                    <monospace>build_index</monospace> function implemented in CircSeqAlignTk builds two types of reference sequences from the input genome sequence for alignment: (i) type 1, the input genome sequence itself, and (ii) type 2, generated by restoring the type 1 reference sequence to a circular sequence by opening the circle at a position opposite to that of the type 1 reference sequence. Once the two reference sequences are built, the 
                    <monospace>align_reads</monospace> function is used for alignment through two stages: (i) aligning reads to the type 1 reference and (ii) collecting the unaligned reads and aligning them to the type 2 reference. The 
                    <monospace>align_reads</monospace> function allows users to choose either Bowtie2 (
                    <xref ref-type="bibr" rid="ref6">Langmead and Salzberg, 2012</xref>) or HISAT2 (
                    <xref ref-type="bibr" rid="ref5">Kim 
                        <italic toggle="yes">et al</italic>., 2019</xref>) for alignment. Alignment is performed by preferentially calling Bowtie2 or HISAT2, both of which are directly installed on the OS. However, if the tools are not available, 
                    <monospace>align_reads</monospace> will automatically call the Bioconductor packages Rbowtie2 (
                    <xref ref-type="bibr" rid="ref16">Wei 
                        <italic toggle="yes">et al</italic>., 2018</xref>) or Rhisat2 (
                    <xref ref-type="bibr" rid="ref13">Soneson, 2022</xref>) for alignment, which are installed automatically as dependencies of CircSeqAlignTk. Finally, the 
                    <monospace>calc_coverage</monospace> and 
                    <monospace>plot</monospace> functions can be used to summarise and visualise the alignment coverage according to the length and strand of the aligned reads, respectively.</p>
                <p>Besides performing end-to-end RNA-seq data analysis, CircSeqAlignTk also implements a function to generate synthetic sequence reads to mimic RNA-seq data that are sequenced from circular genome sequences using the 
                    <monospace>generate_reads</monospace> function. This function is intended for developers to evaluate the performance of new alignment algorithms and analysis workflows. To generate synthetic reads, users can specify certain circular genome sequences for read sampling and then include adapter sequences and mismatches by adjusting arguments.</p>
            </sec>
        </sec>
        <sec id="sec5">
            <title>Use cases</title>
            <p>The goal of use cases is to briefly overview the basic usage of CircSeqAlignTk functions. Herein, we show two use case examples: (i) analysis of small RNA-seq data sequenced from a viroid infection experiment and (ii) analysis of synthetic small RNA-seq data generated by CircSeqAlignTk. Additionally, the detailed usages of CircSeqAlignTk are documented in the package vignette and can be accessed with the 
                <monospace>browseVignettes</monospace> function.</p>
            <p>
                <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
browseVignettes('CircSeqAlignTk')</preformat>
            </p>
            <sec id="sec6">
                <title>Analysis of small RNA-seq data sequenced from a viroid infection experiment</title>
                <p>For a practical CircSeqAlignTk use case, we analysed a subset of small RNA-seq data sequenced from tomato plants that were experimentally infected with the potato spindle tuber viroid (PSTVd) isolate Cen-1. Herein, we show that aligning RNA-seq reads onto the genome sequence of PSTVd isolate Cen-1 and visualising the alignment coverage with CircSeqAlignTk. The sample RNA-seq data and the genome sequence of PSTVd isolate Cen-1 are included in CircSeqAlignTk and can be accessed with the 
                    <monospace>system.file</monospace> function.</p>
                <p>
                    <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
library(CircSeqAlignTk)
fq &lt;- system.file (package = 'CircSeqAlignTk', 'extdata', 'srna.fq.gz')
genome_seq &lt;- system.file (package = 'CircSeqAlignTk', 'extdata', 'FR851463.fa')</preformat>
                </p>
                <p>Since most reads in this RNA-seq data contain adapters with the sequence &#x201c;AGATCGGAAGAGCACACGTCTGAACTCCAGTCAC,&#x201d; we used AdapterRemoval (
                    <xref ref-type="bibr" rid="ref11">Schubert 
                        <italic toggle="yes">et al</italic>., 2016</xref>), which was implemented in the R package Rbowtie2 (
                    <xref ref-type="bibr" rid="ref16">Wei 
                        <italic toggle="yes">et al</italic>., 2018</xref>), to trim the adapters before analysis with CircSeqAlignTk.</p>
                <p>
                    <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
library(R.utils)
library(Rbowtie2)
gunzip(fq, destname='srna.fq')
params &lt;- '--maxns 1 --trimqualities --minquality 30 --minlength 21 --maxlength 24'
remove_adapters(file 1 = 'srna.fq',
&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;adapter1 = 'AGATCGGAAGAGCACACGTCTGAACTCCAGTCAC',
&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;adapter2 = NULL,
&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;output1 = 'srna_trimmed.fq',
&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;params,
&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;overwrite = TRUE)</preformat>
                </p>
                <p>After the adapter removal, we built indexes of PSTVd isolate Cen-1 genome sequences using the 
                    <monospace>build_index</monospace> function and performed alignment using the 
                    <monospace>align_reads</monospace> function. Thereafter, we summarised the alignment coverage using the 
                    <monospace>calc_coverage</monospace> function and visualised the result using the 
                    <monospace>plot</monospace> function (
                    <xref ref-type="fig" rid="f2">Figure 2A</xref>).</p>
                <fig fig-type="figure" id="f2" orientation="portrait" position="float">
                    <label>Figure 2. </label>
                    <caption>
                        <title>Visualization of alignment coverage.</title>
                        <p>A. Alignment coverage of RNA-seq data from viroid-infected tomato plants. B. Alignment coverage of synthetic RNA-seq data generated by the CircSeqAlignTk functions.</p>
                    </caption>
                    <graphic id="gr9" orientation="portrait" position="float" xlink:href="https://f1000research-files.f1000.com/manuscripts/139847/c3388352-3754-435c-b609-4b7633605208_figure2.gif"/>
                </fig>
                <p>
                    <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
ref_index &lt;- build_index(input = genome_seq,
&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;output = 'index')
aln &lt;- align_reads(input = 'srna_trimmed.fq',
&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;index = ref_index,
&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;output = 'align_results')
alncov &lt;- calc_coverage(aln)
plot(alncov)</preformat>
                </p>
            </sec>
            <sec id="sec7">
                <title>Analysis of synthetic small RNA-seq data</title>
                <p>One of the notable functions of CircSeqAlignTk is generating synthetic small RNA-seq data that mimics real RNA-seq data obtained from biological experiments. Herein, we used the 
                    <monospace>generate_reads</monospace> function to generate 10,000 small RNA-seq reads with 150 nucleotides and the adapter sequence &#x201c;AGATCGGAAGAGCACACGTCTGAACTCCAGTCAC&#x201d; to mimic real RNA-seq reads from plants infected by PSTVd isolate Cen-1. Additionally, we introduced two mismatches for each read with the probabilities of 0.1 and 0.01, respectively.</p>
                <p>
                    <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
set.seed(1)
genome_seq &lt;- system.file(package = 'CircSeqAlignTk', 'extdata', 'FR851463.fa')
sim &lt;- generate_reads(n = 5000,
&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;seq = genome_seq,
&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;adapter = 'AGATCGGAAGAGCACACGTCTGAACTCCAGTCAC',
&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;output = 'synthetic_reads.fq.gz',
&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;read_length = 150,
&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;mismatch_prob = c(0.1, 0.1 * 0.1))</preformat>
                </p>
                <p>The above function generates synthetic reads by repeating the following operation: randomly cutting substrings from the whole genome sequence of PSTVd isolate Cen-1, adding the adapter, and introducing two mismatches with the specified probability. The location of random cutting and the length of reads can be stored into a variable, allowing users check these information as well as visualise the ground truth of alignment coverage of these synthetic reads (
                    <xref ref-type="fig" rid="f2">Figure 2B</xref>).</p>
                <p>
                    <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
head (slot (sim, 'read_info'))
##&#x2003;&#x2003;&#x2003;mean&#x2003;std&#x2003;strand&#x2003;&#x2003;&#x2003;&#x2003;prob&#x2002;&#x2003;start&#x2002;end&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;sRNA&#x2002;&#x2003;&#x2003;length
##&#x2003;1&#x2003;&#x2003;341&#x2003;&#x2003; 4&#x2003;&#x2003;&#x2003;&#x2002;+ &#x2002;0.1079135&#x2003;&#x2003; 704 727 GGAACCGCAGTTGGTTCCTCGGAA&#x2003;&#x2003;&#x2003;&#x2003; 24
##&#x2003;2&#x2003;&#x2003; 74&#x2003;&#x2003; 4&#x2002;&#x2003;&#x2003;&#x2003;+ &#x2002;0.1946800&#x2003;&#x2003; 431 454 CTCGGAGGAGCGCTTCAGGGATCC&#x2003;&#x2003;&#x2003;&#x2003; 24
##&#x2003;3&#x2003;&#x2003;227&#x2003;&#x2003; 4&#x2003;&#x2002;&#x2003;&#x2003;+ &#x2002;0.1104790&#x2003;&#x2003; 588 611 CCCCTCGCCCCCTTTGCGCTGTCG&#x2003;&#x2003;&#x2003;&#x2003; 24
##&#x2003;4&#x2003;&#x2003; 65&#x2003;&#x2003; 4&#x2003;&#x2002;&#x2003;&#x2003;+ &#x2002;0.1496360&#x2003;&#x2003; 425 445&#x2003;TTGCGGCCCGGAGGAGCGCTT&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;21
##&#x2003;5&#x2003;&#x2003;341&#x2003;&#x2003; 4&#x2003;&#x2002;&#x2003;&#x2003;+ &#x2002;0.1079135&#x2003;&#x2003; 702 724&#x2003;TTGGAACCGCAGTTGGTTCCGCG&#x2003;&#x2003;&#x2003;&#x00a0;&#x2003;23
##&#x2003;6&#x2003;&#x2003;239&#x2003;&#x2003; 3&#x2003;&#x2002;&#x2003;&#x2003;+ &#x2002;0.1342126&#x2003;&#x2003; 599 622 CTTTGCGCTGTCGCTTCGGCTACT&#x2003;&#x2003;&#x2003;&#x2003; 24
alncov &lt;- slot (sim, 'coverage')
plot(alncov)</preformat>
                </p>
                <p>The generated reads are saved in FASTQ format. Users can use these reads to evaluate the performance of the workflow analysis by calculating the root mean squared error between the ground truth and outputs by the workflow.</p>
                <p>
                    <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
gunzip('synthetic_reads.fq.gz', destname='synthetic_reads.fq')
params &lt;- '--maxns 1 --trimqualities --minquality 30 --minlength 21 --maxlength 24'
remove_adapters(file 1 = 'synthetic_reads.fq',
&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2002;&#x2003;&#x2003;&#x2003;adapter1 = 'AGATCGGAAGAGCACACGTCTGAACTCCAGTCAC',
&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2002;&#x2003;&#x2003;&#x2003;&#x2003;adapter2 = NULL,
&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2002;&#x2003;&#x2003;&#x2003;&#x2003;output1 = 'synthetic_reads_trimmed.fq',
&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2002;&#x2003;&#x2003;&#x2003;&#x2003;params,
&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2002;&#x2003;&#x2003;&#x2003;&#x2003;overwrite = TRUE)
ref_index &lt;- build_index(input = genome_seq,
&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2002;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;output = 'index')
aln &lt;- align_reads(input = 'synthetic_reads_trimmed.fq',
&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;index = ref_index,
&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;&#x2003;output = 'align_results')
alncov &lt;- calc_coverage(aln)
plot(alncov)</preformat>
                </p>
                <p>
                    <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">

                        <italic toggle="yes"># coverage of reads in forward strand</italic>
fwd_pred &lt;- slot (alncov, 'forward')
fwd_true &lt;- slot (slot (sim, 'coverage'), 'forward')
sqrt (sum((fwd_pred - fwd_true) ^ 2) / length (fwd_true))
## [1] 0.2201737</preformat>
                </p>
                <p>
                    <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">

                        <italic toggle="yes"># coverage of reads in reversed strand</italic>
rev_pred &lt;- slot (alncov, 'reversed')
rev_true &lt;- slot (slot (sim, 'coverage'), 'reversed')
sqrt (sum((rev_pred - rev_true) ^ 2) / length (rev_true))
## [1] 0.1262061</preformat>
                </p>
            </sec>
        </sec>
        <sec id="sec8" sec-type="conclusions">
            <title>Conclusions</title>
            <p>The R package CircSeqAlignTk has promising potential for end-to-end analysis of RNA-seq data for circular genomes including bacteria, viruses, and viroids. In addition, it can also be extended to other organisms and organelles with circular genomes, such as mitochondria and chloroplasts. Given its easy installation, straightforward usage, and detailed documentation, the package will dramatically reduce barriers to analysing such RNA-seq data.</p>
        </sec>
        <sec id="sec9">
            <title>Software availability</title>
            <p>Software available from: 
                <ext-link ext-link-type="uri" xlink:href="https://doi.org/doi:10.18129/B9.bioc.CircSeqAlignTk">https://doi.org/doi:10.18129/B9.bioc.CircSeqAlignTk</ext-link>
            </p>
            <p>Source code available from: 
                <ext-link ext-link-type="uri" xlink:href="https://github.com/jsun/CircSeqAlignTk">https://github.com/jsun/CircSeqAlignTk</ext-link>
            </p>
            <p>Archived source code at time of publication: 
                <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.5281/zenodo.7218032">https://doi.org/10.5281/zenodo.7218032</ext-link> (
                <xref ref-type="bibr" rid="ref14">Sun, Fu &amp; Cao, 2022</xref>).</p>
            <p>License: 
                <ext-link ext-link-type="uri" xlink:href="https://opensource.org/licenses/MIT">MIT</ext-link>
            </p>
        </sec>
    </body>
    <back>
        <sec id="sec12" sec-type="data-availability">
            <title>Data availability</title>
            <p>Zenodo: CircSeqAlignTk. 
                <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.5281/zenodo.7218032">https://doi.org/10.5281/zenodo.7218032</ext-link> (
                <xref ref-type="bibr" rid="ref14">Sun, Fu &amp; Cao, 2022</xref>).
                <list list-type="bullet">
                    <list-item>
                        <label>-</label>
                        <p>The datasets analysed in this manuscript are stored in the 
                            <monospace>inst/extdata</monospace> directory of CircSeqAlignTk package.</p>
                    </list-item>
                </list>
            </p>
        </sec>
        <ack>
            <title>Acknowledgements</title>
            <p>We thank Yosuke Matsushita for insightful discussions and inputs.</p>
        </ack>
        <ref-list>
            <title>References</title>
            <ref id="ref1">
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Adkar-Purushothama</surname>
                            <given-names>CR</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Sridharan lyer</surname>
                            <given-names>P</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Sano</surname>
                            <given-names>T</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>sRNA Profiler: a user-focused interface for small RNA mapping and profiling.</article-title>
                    <source>

                        <italic toggle="yes">Cells.</italic>
</source>
                    <year>2021</year>;<volume>10</volume>(<issue>7</issue>):<fpage>1771</fpage>.
                    <pub-id pub-id-type="pmid">34359940</pub-id>
                    <pub-id pub-id-type="doi">10.3390/cells10071771</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref2">
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Ayad</surname>
                            <given-names>LAK</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Pissis</surname>
                            <given-names>SP</given-names>
                        </name>
</person-group>:
                    <article-title>MARS: improving multiple circular sequence alignment using refined sequences.</article-title>
                    <source>

                        <italic toggle="yes">BMC Genomes.</italic>
</source>
                    <year>2017</year>;<volume>18</volume>:<fpage>86</fpage>.
                    <pub-id pub-id-type="pmid">28088189</pub-id>
                    <pub-id pub-id-type="doi">10.1186/s12864-016-3477-5</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref3">
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Benson</surname>
                            <given-names>DA</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Cavanaugh</surname>
                            <given-names>M</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Clark</surname>
                            <given-names>K</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>GenBank.</article-title>
                    <source>

                        <italic toggle="yes">Nucleic Acids Res.</italic>
</source>
                    <year>2013</year>;<volume>41</volume>:<fpage>D36</fpage>&#x2013;<lpage>D42</lpage>.
                    <pub-id pub-id-type="pmid">23193287</pub-id>
                    <pub-id pub-id-type="doi">10.1093/nar/gks1195</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref4">
                <mixed-citation publication-type="book">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Hull</surname>
                            <given-names>R</given-names>
                        </name>
</person-group>:
                    <source>

                        <italic toggle="yes">Plant Virology (fifth edition). Plant virology.</italic>
</source>
                    <publisher-loc>Cambridge, Massachusetts, US</publisher-loc>:
                    <publisher-name>Academic Press</publisher-name>;<year>2014</year>.
                    <pub-id pub-id-type="doi">10.1016/C2010-0-64974-1</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref5">
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Kim</surname>
                            <given-names>D</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Paggi</surname>
                            <given-names>JM</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Park</surname>
                            <given-names>C</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Graph-based genome alignment and genotyping with HISAT2 and HISAT-genotype.</article-title>
                    <source>

                        <italic toggle="yes">Nat. Biotechnol.</italic>
</source>
                    <year>2019</year>;<volume>37</volume>:<fpage>907</fpage>&#x2013;<lpage>915</lpage>.
                    <pub-id pub-id-type="pmid">31375807</pub-id>
                    <pub-id pub-id-type="doi">10.1038/s41587-019-0201-4</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref6">
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Langmead</surname>
                            <given-names>B</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Salzberg</surname>
                            <given-names>S</given-names>
                        </name>
</person-group>:
                    <article-title>Fast gapped-read alignment with Bowtie 2.</article-title>
                    <source>

                        <italic toggle="yes">Nat. Methods.</italic>
</source>
                    <year>2012</year>;<volume>9</volume>:<fpage>357</fpage>&#x2013;<lpage>359</lpage>.
                    <pub-id pub-id-type="pmid">22388286</pub-id>
                    <pub-id pub-id-type="doi">10.1038/nmeth.1923</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref7">
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Leinonen</surname>
                            <given-names>R</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Sugawara</surname>
                            <given-names>H</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Shumway</surname>
                            <given-names>M</given-names>
                        </name>
</person-group>:
                    <article-title>and on behalf of the International Nucleotide Sequence Database Collaboration. The sequence read archive.</article-title>
                    <source>

                        <italic toggle="yes">Nucleic Acids Res.</italic>
</source>
                    <year>2011</year>;<volume>39</volume>:<fpage>D19</fpage>&#x2013;<lpage>D21</lpage>.
                    <pub-id pub-id-type="pmid">21062823</pub-id>
                    <pub-id pub-id-type="doi">10.1093/nar/gkq1019</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref8">
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Li</surname>
                            <given-names>H</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Handsaker</surname>
                            <given-names>B</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Wysoker</surname>
                            <given-names>A</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>The sequence alignment/map format and SAMtools.</article-title>
                    <source>

                        <italic toggle="yes">Bioinformatics.</italic>
</source>
                    <year>2009</year>;<volume>25</volume>(<issue>16</issue>):<fpage>2078</fpage>&#x2013;<lpage>2079</lpage>.
                    <pub-id pub-id-type="pmid">19505943</pub-id>
                    <pub-id pub-id-type="doi">10.1093/bioinformatics/btp352</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref9">
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Quinlan</surname>
                            <given-names>AR</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Hall</surname>
                            <given-names>IM</given-names>
                        </name>
</person-group>:
                    <article-title>BEDTools: a flexible suite of utilities for comparing genomic features.</article-title>
                    <source>

                        <italic toggle="yes">Bioinformatics.</italic>
</source>
                    <year>2010</year>;<volume>26</volume>(<issue>6</issue>):<fpage>841</fpage>&#x2013;<lpage>842</lpage>.
                    <pub-id pub-id-type="pmid">20110278</pub-id>
                    <pub-id pub-id-type="doi">10.1093/bioinformatics/btq033</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref10">
                <mixed-citation publication-type="book">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Sastry</surname>
                            <given-names>KS</given-names>
                        </name>
</person-group>:
                    <chapter-title>Impact of virus and viroid diseases on crop yields.</chapter-title>
                    <source>

                        <italic toggle="yes">Plant virus and viroid diseases in the tropics.</italic>
</source>
                    <publisher-name>Springer</publisher-name>;
                    <publisher-loc>Dordrecht</publisher-loc>:<year>2013</year>.
                    <pub-id pub-id-type="doi">10.1007/978-94-007-6524-5_3</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref11">
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Schubert</surname>
                            <given-names>M</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Lindgreen</surname>
                            <given-names>S</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Orlando</surname>
                            <given-names>L</given-names>
                        </name>
</person-group>:
                    <article-title>(2016) AdapterRemoval v2: rapid adapter trimming, identification, and read merging.</article-title>
                    <source>

                        <italic toggle="yes">BMC. Res. Notes.</italic>
</source>
                    <year>2016</year>;<volume>9</volume>:<fpage>88</fpage>.
                    <pub-id pub-id-type="pmid">26868221</pub-id>
                    <pub-id pub-id-type="doi">10.1186/s13104-016-1900-2</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref12">
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Soliman</surname>
                            <given-names>T</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Mourits</surname>
                            <given-names>MCM</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Oude Lansink</surname>
                            <given-names>AGJM</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Quantitative economic impact assessment of an invasive plant disease under uncertainty &#x2013; A case study for potato spindle tuber viroid (PSTVd) invasion into the European Union.</article-title>
                    <source>

                        <italic toggle="yes">Crop Prot.</italic>
</source>
                    <year>2012</year>;<volume>40</volume>:<fpage>28</fpage>&#x2013;<lpage>35</lpage>.
                    <pub-id pub-id-type="doi">10.1016/j.cropro.2012.04.019</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref13">
                <mixed-citation publication-type="other">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Soneson</surname>
                            <given-names>C</given-names>
                        </name>
</person-group>:
                    <article-title>Rhisat2: R wrapper for HISAT2 aligner. R package version 1.12.0. GitHub.</article-title>[October 6, 2022 accessed].
                    <ext-link ext-link-type="uri" xlink:href="https://github.com/fmicompbio/Rhisat2">Reference Source</ext-link>
                </mixed-citation>
            </ref>
            <ref id="ref14">
                <mixed-citation publication-type="data">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Sun</surname>
                            <given-names>J</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Fu</surname>
                            <given-names>X</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Cao</surname>
                            <given-names>W</given-names>
                        </name>
</person-group>:
                    <data-title>CircSeqAlignTk. Zenodo.</data-title>[Dataset].<year>2022</year>.
                    <pub-id pub-id-type="doi">10.5281/zenodo.7218032</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref15">
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Vihervaara</surname>
                            <given-names>A</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Duarte</surname>
                            <given-names>FM</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Lis</surname>
                            <given-names>JT</given-names>
                        </name>
</person-group>:
                    <article-title>Molecular mechanisms driving transcriptional stress responses.</article-title>
                    <source>

                        <italic toggle="yes">Nat. Rev. Genet.</italic>
</source>
                    <year>2018</year>;<volume>19</volume>:<fpage>385</fpage>&#x2013;<lpage>397</lpage>.
                    <pub-id pub-id-type="pmid">29556092</pub-id>
                    <pub-id pub-id-type="doi">10.1038/s41576-018-0001-6</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref16">
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Wei</surname>
                            <given-names>Z</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Zhang</surname>
                            <given-names>W</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Fang</surname>
                            <given-names>H</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>esATAC: and easy-to-use systematic pipeline for ATAC-seq data analysis.</article-title>
                    <source>

                        <italic toggle="yes">Bioinformatics.</italic>
</source>
                    <year>2018</year>;<volume>34</volume>(<issue>15</issue>):<fpage>2664</fpage>&#x2013;<lpage>2665</lpage>.
                    <pub-id pub-id-type="pmid">29522192</pub-id>
                    <pub-id pub-id-type="doi">10.1093/bioinformatics/bty141</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref17">
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Zanardo</surname>
                            <given-names>LG</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Souza</surname>
                            <given-names>GB</given-names>
                            <prefix>de</prefix>
                        </name>

                        <name name-style="western">
                            <surname>Alves</surname>
                            <given-names>MS</given-names>
                        </name>
</person-group>:
                    <article-title>Transcriptomics of plant&#x2013;virus interactions: a review.</article-title>
                    <source>

                        <italic toggle="yes">Theor. Exp. Plant Physiol.</italic>
</source>
                    <year>2019</year>;<volume>31</volume>:<fpage>103</fpage>&#x2013;<lpage>125</lpage>.
                    <pub-id pub-id-type="doi">10.1007/s40626-019-00143-z</pub-id>
                </mixed-citation>
            </ref>
        </ref-list>
    </back>
    <sub-article article-type="reviewer-report" id="report267951">
        <front-stub>
            <article-id pub-id-type="doi">10.5256/f1000research.139847.r267951</article-id>
            <title-group>
                <article-title>Reviewer response for version 1</article-title>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author">
                    <name>
                        <surname>Zelikovsky</surname>
                        <given-names>Alexander</given-names>
                    </name>
                    <xref ref-type="aff" rid="r267951a1">1</xref>
                    <role>Referee</role>
                    <uri content-type="orcid">https://orcid.org/0000-0003-4424-4691</uri>
                </contrib>
                <contrib contrib-type="author">
                    <name>
                        <surname>Sahoo</surname>
                        <given-names>Bikram</given-names>
                    </name>
                    <xref ref-type="aff" rid="r267951a1">1</xref>
                    <role>Co-referee</role>
                    <uri content-type="orcid">https://orcid.org/0000-0001-6481-2583</uri>
                </contrib>
                <aff id="r267951a1">
                    <label>1</label>Department of Computer Science, Georgia State University, Atlanta, Georgia, USA</aff>
            </contrib-group>
            <author-notes>
                <fn fn-type="conflict">
                    <p>
                        <bold>Competing interests: </bold>No competing interests were disclosed.</p>
                </fn>
            </author-notes>
            <pub-date pub-type="epub">
                <day>28</day>
                <month>4</month>
                <year>2024</year>
            </pub-date>
            <permissions>
                <copyright-statement>Copyright: &#x00a9; 2024 Zelikovsky A and Sahoo B</copyright-statement>
                <copyright-year>2024</copyright-year>
                <license xlink:href="https://creativecommons.org/licenses/by/4.0/">
                    <license-p>This is an open access peer review report distributed under the terms of the Creative Commons Attribution Licence, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
                </license>
            </permissions>
            <related-article ext-link-type="doi" id="relatedArticleReport267951" related-article-type="peer-reviewed-article" xlink:href="10.12688/f1000research.127348.1"/>
            <custom-meta-group>
                <custom-meta>
                    <meta-name>recommendation</meta-name>
                    <meta-value>approve</meta-value>
                </custom-meta>
            </custom-meta-group>
        </front-stub>
        <body>
            <p>The article provides a comprehensive overview of the urgent need for packages tailored for non-bioinformaticians, addressing the challenges in analyzing circular genome data. However, there are some minor comments: 
                <list list-type="order">
                    <list-item>
                        <p>The authors primarily focus on the use of Bowtie2 and HISAT2 for alignment, neglecting to mention pseudoalignment algorithms like Kalisto. Including a brief description of such tools in the introduction would enhance the readers' understanding. Additionally, a comparative analysis of different alignment algorithms, along with the option to choose between them, would augment the robustness of the tool.</p>
                    </list-item>
                    <list-item>
                        <p>While the package utilizes SAMtools and BEDtools for coverage computation, incorporating downstream analysis tools compatible with circular genomes would enrich the utility of the tool for users.</p>
                    </list-item>
                    <list-item>
                        <p>Each figure in the article requires thorough explanation to aid interpretation, as they may be challenging to decipher at first glance. For instance, the coverage plot's significance is not&#x00a0;easy to comprehend.</p>
                    </list-item>
                    <list-item>
                        <p>To attract non-computational users, it would be advantageous for the package to feature an easy-to-use graphical user interface (GUI), aligning with the intended accessibility for this audience.</p>
                    </list-item>
                </list> Overall, these suggestions aim to enhance the comprehensiveness and usability of the CircSeqAlignTk package for a wider range of users.</p>
            <p>Are the conclusions about the tool and its performance adequately supported by the findings presented in the article?</p>
            <p>Partly</p>
            <p>Is the rationale for developing the new software tool clearly explained?</p>
            <p>Yes</p>
            <p>Is the description of the software tool technically sound?</p>
            <p>Yes</p>
            <p>Are sufficient details of the code, methods and analysis (if applicable) provided to allow replication of the software development and its use by others?</p>
            <p>Yes</p>
            <p>Is sufficient information provided to allow interpretation of the expected output datasets and any results generated using the tool?</p>
            <p>Partly</p>
            <p>Reviewer Expertise:</p>
            <p>Computational genomics, RNA-seq and DNA-seq data analysis</p>
            <p>We confirm that we have read this submission and believe that we have an appropriate level of expertise to confirm that it is of an acceptable scientific standard.</p>
        </body>
        <sub-article article-type="response" id="comment11486-267951">
            <front-stub>
                <contrib-group>
                    <contrib contrib-type="author">
                        <name>
                            <surname>Sun</surname>
                            <given-names>Jianqiang</given-names>
                        </name>
                        <aff>National Agriculture and Food Research Organization, Japan, Japan</aff>
                    </contrib>
                </contrib-group>
                <author-notes>
                    <fn fn-type="conflict">
                        <p>
                            <bold>Competing interests: </bold>No competing interests were disclosed.</p>
                    </fn>
                </author-notes>
                <pub-date pub-type="epub">
                    <day>29</day>
                    <month>4</month>
                    <year>2024</year>
                </pub-date>
            </front-stub>
            <body>
                <p>Thank you for reviewing our manuscript and for your constructive comments. According to reviewers&#x2019; comments, we have largely revised the manuscript and updated the software. Please find our point-by-point detailed responses to the reviewers&#x2019; comments, below. 
                    <list list-type="order">
                        <list-item>
                            <p>We will update the software to support kallisto and update the documentation of this package in the next scheduled release. Thank you for your suggestion.</p>
                        </list-item>
                        <list-item>
                            <p>We plan to add functions for downstream analysis based on future needs.</p>
                        </list-item>
                        <list-item>
                            <p>We modified the captions of figures in the revised manuscript.</p>
                        </list-item>
                        <list-item>
                            <p>Thank you and other reviewers&#x2019; suggestions, we have already implemented the GUI and released it.</p>
                        </list-item>
                    </list>
                </p>
            </body>
        </sub-article>
    </sub-article>
    <sub-article article-type="reviewer-report" id="report254597">
        <front-stub>
            <article-id pub-id-type="doi">10.5256/f1000research.139847.r254597</article-id>
            <title-group>
                <article-title>Reviewer response for version 1</article-title>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author">
                    <name>
                        <surname>Dong</surname>
                        <given-names>Xueyi</given-names>
                    </name>
                    <xref ref-type="aff" rid="r254597a1">1</xref>
                    <xref ref-type="aff" rid="r254597a2">2</xref>
                    <role>Referee</role>
                    <uri content-type="orcid">https://orcid.org/0000-0003-1136-3117</uri>
                </contrib>
                <aff id="r254597a1">
                    <label>1</label>Bioinformatics Division, Walter and Eliza Hall Institute of Medical Research, Melbourne, Victoria, Australia</aff>
                <aff id="r254597a2">
                    <label>2</label>ACRF Cancer Biology and Stem Cells Division Institution, Walter and Eliza Hall Institute of Medical Research, Melbourne, Victoria, Australia</aff>
            </contrib-group>
            <author-notes>
                <fn fn-type="conflict">
                    <p>
                        <bold>Competing interests: </bold>No competing interests were disclosed.</p>
                </fn>
            </author-notes>
            <pub-date pub-type="epub">
                <day>20</day>
                <month>3</month>
                <year>2024</year>
            </pub-date>
            <permissions>
                <copyright-statement>Copyright: &#x00a9; 2024 Dong X</copyright-statement>
                <copyright-year>2024</copyright-year>
                <license xlink:href="https://creativecommons.org/licenses/by/4.0/">
                    <license-p>This is an open access peer review report distributed under the terms of the Creative Commons Attribution Licence, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
                </license>
            </permissions>
            <related-article ext-link-type="doi" id="relatedArticleReport254597" related-article-type="peer-reviewed-article" xlink:href="10.12688/f1000research.127348.1"/>
            <custom-meta-group>
                <custom-meta>
                    <meta-name>recommendation</meta-name>
                    <meta-value>approve-with-reservations</meta-value>
                </custom-meta>
            </custom-meta-group>
        </front-stub>
        <body>
            <p>In the manuscript "CircSeqAlignTk: An R package for end-to-end analysis of RNA-seq data for circular genomes" by Jianqiang Sun, Xi Fu and Wei Cao, the authors introduced an R package&#x00a0;CircSeqAlignTk for RNA-seq data analysis related to circular genome, including read alignment, coverage visualization and data simulation. The authors have clearly introduced the rationale for developing this package, how the alignment to circular genome works, and how to use this package. I only have several minor comments: 
                <list list-type="bullet">
                    <list-item>
                        <p>The authors should add more details on the definition of alignment coverage and explain how it is calculated in this package. More descriptions should be added to the captions of Figure 2 to help the readers interpret this figure.</p>
                    </list-item>
                    <list-item>
                        <p>While the analyses are based on circular genomes, the visualization of alignment coverage was still on linear axes. I found it a bit hard to determine the end of the sequence coordinate in Figure 2 (i.e. are the blank space on the right end of x-axis regions with no coverage, or are they outside of the range of the genome?). Have you considered using circular plots?</p>
                    </list-item>
                    <list-item>
                        <p>&#x00a0;If applicable, the performance of&#x00a0;CircSeqAlignTk should be compared to other tools for the same or similar tasks.</p>
                    </list-item>
                </list>
            </p>
            <p>Are the conclusions about the tool and its performance adequately supported by the findings presented in the article?</p>
            <p>Partly</p>
            <p>Is the rationale for developing the new software tool clearly explained?</p>
            <p>Yes</p>
            <p>Is the description of the software tool technically sound?</p>
            <p>Yes</p>
            <p>Are sufficient details of the code, methods and analysis (if applicable) provided to allow replication of the software development and its use by others?</p>
            <p>Yes</p>
            <p>Is sufficient information provided to allow interpretation of the expected output datasets and any results generated using the tool?</p>
            <p>Partly</p>
            <p>Reviewer Expertise:</p>
            <p>bioinformatics</p>
            <p>I confirm that I have read this submission and believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard, however I have significant reservations, as outlined above.</p>
        </body>
        <sub-article article-type="response" id="comment11465-254597">
            <front-stub>
                <contrib-group>
                    <contrib contrib-type="author">
                        <name>
                            <surname>Sun</surname>
                            <given-names>Jianqiang</given-names>
                        </name>
                        <aff>National Agriculture and Food Research Organization, Japan, Japan</aff>
                    </contrib>
                </contrib-group>
                <author-notes>
                    <fn fn-type="conflict">
                        <p>
                            <bold>Competing interests: </bold>The authors have no competing interests to disclose.</p>
                    </fn>
                </author-notes>
                <pub-date pub-type="epub">
                    <day>22</day>
                    <month>4</month>
                    <year>2024</year>
                </pub-date>
            </front-stub>
            <body>
                <p>Thank you for reviewing our manuscript and for your constructive comments. We have largely revised the manuscript according to your and other reviewers&#x2019; comments. Please check the revised manuscript. Additionally, below are our responses to the individual comments. 
                    <list list-type="bullet">
                        <list-item>
                            <p>The coverage is calculated separately for forward and reverse aligned-reads from the BAM file using the `IRanges::coverage` function which counts the number of reads covering each position of viroid-genome. Thank you for pointing this out. We have revised the manuscript and Figure 2.</p>
                        </list-item>
                        <list-item>
                            <p>Because the expression profile of viroids&#x2019; small RNA is often visualised in linear axes, &#x00a0;this package visualises in a linear fashion by default. However, the vignette of this package introduces an example of visualisation with circular axes (
                                <ext-link ext-link-type="uri" xlink:href="https://www.bioconductor.org/packages/release/bioc/html/CircSeqAlignTk.html">https://www.bioconductor.org/packages/release/bioc/html/CircSeqAlignTk.html</ext-link>).</p>
                        </list-item>
                        <list-item>
                            <p>Thank you for the constructive comments. Although many alignment tools have been developed for circular genomes, few specialise in viroid expression analysis. Among these, the sRNA Profiler (Adkar-Purushothama et al) is an alignment tool with similar purpose to CircSeqAlignTk. However, neither by checking the manual nor by reading the code we could not find the functionality to perform alignment and visualisation from FASTQ files. Thus, comparative studies were not possible due to the lack of software on the same basis as CircSeqAlignTk.</p>
                        </list-item>
                    </list>
                </p>
            </body>
        </sub-article>
    </sub-article>
    <sub-article article-type="reviewer-report" id="report228243">
        <front-stub>
            <article-id pub-id-type="doi">10.5256/f1000research.139847.r228243</article-id>
            <title-group>
                <article-title>Reviewer response for version 1</article-title>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author">
                    <name>
                        <surname>Soler</surname>
                        <given-names>Eric</given-names>
                    </name>
                    <xref ref-type="aff" rid="r228243a1">1</xref>
                    <role>Referee</role>
                    <uri content-type="orcid">https://orcid.org/0000-0003-0521-7463</uri>
                </contrib>
                <contrib contrib-type="author">
                    <name>
                        <surname>Salma</surname>
                        <given-names>Mohammad</given-names>
                    </name>
                    <xref ref-type="aff" rid="r228243a1">1</xref>
                    <role>Co-referee</role>
                </contrib>
                <aff id="r228243a1">
                    <label>1</label>University Montpellier &amp; Universit&#x00e9; de Paris, Paris &amp; Montpellier, France</aff>
            </contrib-group>
            <author-notes>
                <fn fn-type="conflict">
                    <p>
                        <bold>Competing interests: </bold>No competing interests were disclosed.</p>
                </fn>
            </author-notes>
            <pub-date pub-type="epub">
                <day>13</day>
                <month>2</month>
                <year>2024</year>
            </pub-date>
            <permissions>
                <copyright-statement>Copyright: &#x00a9; 2024 Soler E and Salma M</copyright-statement>
                <copyright-year>2024</copyright-year>
                <license xlink:href="https://creativecommons.org/licenses/by/4.0/">
                    <license-p>This is an open access peer review report distributed under the terms of the Creative Commons Attribution Licence, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
                </license>
            </permissions>
            <related-article ext-link-type="doi" id="relatedArticleReport228243" related-article-type="peer-reviewed-article" xlink:href="10.12688/f1000research.127348.1"/>
            <custom-meta-group>
                <custom-meta>
                    <meta-name>recommendation</meta-name>
                    <meta-value>approve-with-reservations</meta-value>
                </custom-meta>
            </custom-meta-group>
        </front-stub>
        <body>
            <p>The manuscript titled &#x201c;CircSeqAlignTk: An R package for end-to-end analysis of RNA-seq data for circular genomes&#x201d; by Jianqiang Sun, Xi Fu, and Wei Cao describes a new tool dedicated to circular genome mapping in deep sequencing applications. While this tool could be of interest to scientists dealing with (small) circular genome sequencing, its accessibility to non-bioinformaticians/non-specialists could be improved (see comments below). We provide several suggestions to enhance the content of the manuscript.</p>
            <p> </p>
            <p> 
                <bold>Minor comments:</bold> 
                <list list-type="order">
                    <list-item>
                        <p>
                            <bold>Comparative Analysis:</bold>&#x00a0;A comparative analysis of CircSeqAlignTk with existing tools would greatly enhance the manuscript. This comparison could focus on performance metrics, user-friendliness, and specific advantages of CircSeqAlignTk. Such analysis would provide a clearer picture of the tool&#x2019;s place in the current landscape of bioinformatics software.</p>
                    </list-item>
                    <list-item>
                        <p>
                            <bold>Discussion of Limitations:</bold>&#x00a0;A balanced discussion of any potential limitations of CircSeqAlignTk, or scenarios where it might not be the optimal choice, would provide a more comprehensive view of the tool. This discussion could guide users in making informed decisions about when to use this package.</p>
                    </list-item>
                    <list-item>
                        <p>
                            <bold>Future Work and Enhancements:</bold>&#x00a0;Suggestions for future enhancements would be beneficial. This could include potential areas of expansion or integration with other bioinformatics tools and workflows.</p>
                    </list-item>
                    <list-item>
                        <p>
                            <bold>Implementation of an R Shiny Interface:</bold>&#x00a0;Lastly, we strongly recommend the implementation of an R Shiny interface for CircSeqAlignTk completed by Docker integration. An R Shiny interface would significantly enhance the accessibility of the tool, especially for researchers who are not bioinformaticians. This user-friendly interface would allow a broader range of scientists to engage with and benefit from the tool, making it not just a powerful resource but also an accessible one. The ability to interact with CircSeqAlignTk through a graphical interface would streamline the analysis process and potentially increase the adoption and impact of the tool in the research community. Incorporating Docker into this solution would offer several advantages. It would not only make CircSeqAlignTk more accessible but also ensure its robustness, reproducibility, and compatibility with diverse computational environments. This approach could significantly expand the user base of CircSeqAlignTk and enhance its overall utility in the scientific community.</p>
                    </list-item>
                </list> In conclusion, the manuscript presents a valuable tool for the analysis of RNA-seq data from circular genomes. The implementation of the suggested enhancements would, in our opinion, greatly increase the manuscript&#x2019;s impact and the utility of CircSeqAlignTk to a broader scientific community.</p>
            <p>Are the conclusions about the tool and its performance adequately supported by the findings presented in the article?</p>
            <p>Partly</p>
            <p>Is the rationale for developing the new software tool clearly explained?</p>
            <p>Yes</p>
            <p>Is the description of the software tool technically sound?</p>
            <p>Yes</p>
            <p>Are sufficient details of the code, methods and analysis (if applicable) provided to allow replication of the software development and its use by others?</p>
            <p>Yes</p>
            <p>Is sufficient information provided to allow interpretation of the expected output datasets and any results generated using the tool?</p>
            <p>Yes</p>
            <p>Reviewer Expertise:</p>
            <p>Genomics, epigenetics, bioinformatics</p>
            <p>We confirm that we have read this submission and believe that we have an appropriate level of expertise to confirm that it is of an acceptable scientific standard, however we have significant reservations, as outlined above.</p>
        </body>
        <sub-article article-type="response" id="comment11464-228243">
            <front-stub>
                <contrib-group>
                    <contrib contrib-type="author">
                        <name>
                            <surname>Sun</surname>
                            <given-names>Jianqiang</given-names>
                        </name>
                        <aff>National Agriculture and Food Research Organization, Japan, Japan</aff>
                    </contrib>
                </contrib-group>
                <author-notes>
                    <fn fn-type="conflict">
                        <p>
                            <bold>Competing interests: </bold>The authors have no competing interests to disclose.</p>
                    </fn>
                </author-notes>
                <pub-date pub-type="epub">
                    <day>22</day>
                    <month>4</month>
                    <year>2024</year>
                </pub-date>
            </front-stub>
            <body>
                <p>Thank you for reviewing our manuscript and for your constructive comments. We have largely revised the manuscript according to your and other reviewers&#x2019; comments. Please check the revised manuscript. Additionally, below are our responses to the individual comments. 
                    <list list-type="order">
                        <list-item>
                            <p>Thank you for the constructive comments. Although many alignment tools have been developed for circular genomes, few specialise in viroid expression analysis. Among these, the sRNA Profiler (Adkar-Purushothama et al) is an alignment tool with similar purpose to CircSeqAlignTk. However, neither by checking the manual nor by reading the code we could not find the functionality to perform alignment and visualisation from FASTQ files. Thus, comparative studies were not possible due to the lack of software on the same basis as CircSeqAlignTk.</p>
                        </list-item>
                        <list-item>
                            <p>We added the discussion about the limitations of CircSeqAlignTk in the revised manuscript. In brief, although CircSeqAlignTk provides a user-friendly analysis tool and therefore offers a way to adjust important parameters that may affect the analysis results, some minor parameter adjustments are not possible.</p>
                        </list-item>
                        <list-item>
                            <p>Currently, research on viroid expression profiling focuses on mapping viroid-derived sRNAs to viroids and visualising their coverage. Our package covers all these operations and is promising enough to be stand-alone at the moment. However, since CircSeqAlignTk is one of Bioconductor packages, it can easily be used together with other R/Bioconductor packages. Additionally, we intend to update the package according to the direction of development and the needs of future research.</p>
                        </list-item>
                        <list-item>
                            <p>Thanks for the constructive remarks, we have implemented the Shiny interface to access CircSeqAlignTk for end-to-end data analysis. Users can now create an instance with the `build_app` function and easily start the GUI with the `runApp` function. Additionally, as you know, the size of RNA-Seq data is generally large and using Docker requires mounting the directory, which is quite inconvenient for users unfamiliar with CUI. For this reason, we decided not to provide a Docker image at this stage.</p>
                        </list-item>
                    </list>
                </p>
            </body>
        </sub-article>
    </sub-article>
</article>
