Skip to content

Commit

Permalink
[MISC] Move as many includes from header files to the corresponding c…
Browse files Browse the repository at this point in the history
…pp files to shorten the (re)build time.

Signed-off-by: Lydia Buntrock <[email protected]>
  • Loading branch information
Irallia committed Feb 22, 2021
1 parent 50e7159 commit 80afc8f
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 18 deletions.
11 changes: 3 additions & 8 deletions include/detect_breakends/junction_detection.hpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
#pragma once

#include <seqan3/core/debug_stream.hpp>
#include <seqan3/io/alignment_file/input.hpp> // SAM/BAM support
#include <seqan3/io/sequence_file/output.hpp> // FASTA support
#include <seqan3/std/filesystem> // for filesystem
#include <vector>

#include "detect_breakends/bam_functions.hpp" // for hasFlag* functions
#include "junction.hpp" // for class junction
#include "cluster.hpp" // for class cluster
#include "detect_breakends/aligned_segment.hpp" // for struct aligned_segment
#include "method_enums.hpp" // for enum clustering_methods
#include "method_enums.hpp" // for enum clustering_methods

/*! \brief Detects junctions between distant genomic positions by analyzing an alignment file (sam/bam). The detected
* junctions are printed on stdout and insertion alleles are stored in a fasta file.
Expand Down
8 changes: 1 addition & 7 deletions include/find_deletions/deletion_finding_and_printing.hpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
#pragma once

#include <seqan3/std/filesystem>
#include <seqan3/core/debug_stream.hpp>
#include <seqan3/io/stream/concept.hpp>
#include <fstream>
#include <iostream>
#include <vector>

#include "junction.hpp"
#include <ostream>

/*! \brief Detects deletions out of the junction file.
*
Expand Down
1 change: 1 addition & 0 deletions src/detect_breakends.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <seqan3/argument_parser/argument_parser.hpp>
#include <seqan3/core/debug_stream.hpp>
#include <seqan3/range/views/get.hpp>

#include "detect_breakends/junction_detection.hpp"
Expand Down
9 changes: 9 additions & 0 deletions src/detect_breakends/junction_detection.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#include "detect_breakends/junction_detection.hpp"

#include <seqan3/core/debug_stream.hpp>
#include <seqan3/io/alignment_file/input.hpp> // SAM/BAM support
#include <seqan3/io/sequence_file/output.hpp> // FASTA support

#include "cluster.hpp" // for class Cluster
#include "detect_breakends/aligned_segment.hpp" // for struct AlignedSegment
#include "detect_breakends/bam_functions.hpp" // for hasFlag* functions
#include "junction.hpp" // for class Jnction

using seqan3::operator""_cigar_op;
using seqan3::operator""_tag;

Expand Down
1 change: 1 addition & 0 deletions src/find_deletions.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <seqan3/argument_parser/argument_parser.hpp>
#include <seqan3/core/debug_stream.hpp>

#include "find_deletions/deletion_finding_and_printing.hpp"

Expand Down
8 changes: 5 additions & 3 deletions src/find_deletions/deletion_finding_and_printing.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include <fstream>

#include "find_deletions/deletion_finding_and_printing.hpp"
#include "variant_parser/variant_record.hpp"

#include <iostream> // for std::cout

#include "junction.hpp" // for class Junction
#include "variant_parser/variant_record.hpp" // for class variant_header

/*! \brief Reads the input junction file and stores the junctions in a vector.
*
Expand Down

0 comments on commit 80afc8f

Please sign in to comment.