# Copyright 2011-2025 Gabriele Sales <gabriele.sales@unipd.it>
#
#
# This file is part of graphite.
#
# graphite is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License
# version 3 as published by the Free Software Foundation.
#
# graphite is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public
# License along with graphite. If not, see <http://www.gnu.org/licenses/>.

importFrom(AnnotationDbi, columns, mapIds)
importMethodsFrom(graph,
  edgeData, "edgeData<-", "edgeDataDefaults<-", edges, nodeData, "nodeData<-",
  nodes)
importFrom(graphics, plot)
importFrom(httr, GET, http_status, write_disk)
importFrom(methods, is, new)
importFrom(rappdirs, user_cache_dir)
importFrom(stats, na.omit)
importFrom(utils,
  download.file, getFromNamespace, installed.packages, packageVersion)

exportClasses(Pathways, PathwayList, Pathway)

# Re-exports
exportMethods(edgeData, "edgeData<-", "edgeDataDefaults<-", edges, nodes)

exportMethods(
  convertIdentifiers, plot,
  runClipper, prepareSPIA, runTopologyGSA)

export(
  pathways, pathwayDatabases, pathwayId, pathwayTitle, pathwayDatabase,
  pathwaySpecies, pathwayTimestamp, pathwayURL, buildPathway, cytoscapePlot,
  pathwayGraph, runSPIA,
  purgeCacheV1)

S3method(as.list, PathwayList)
