text: user15741: Very new to bioinformatics. I am trying to figure out the steps required to convert a chip-seq fastq file into a genome browser track, with the end goal of being able to access the sequence (x) vs. activity level/count (y) data associated.
  Any genome browser activity/count track data has the following functional format
  
  $y=F(x)$
  Here x is the sequence axis, and y is the activity/count axis. Typically the x(i) is the nucleotide associated with the precise genomic coordinate i (an integer number) depending on the genome used to align (human, mouse, etc.). What I need is a format allowing direct access to the nucleotide representation x(i), associated with the index i, as well as the count levels at y(x(i)). What is the closest data file type that I need? And how do I get to it?
  In other words, what are the steps for a fastq file associated with a chip-seq data to be transformed to this x(i),y(i) format, or best yet if there is an example Python or R code out there that could illustrate the steps of going from file1.fastq to something like to two files file1_x_sequences and file2_y_counts? I only know the first step is an alignment to a genome, but stuck on the next steps to complete the picture. Thank you.
  Ultimately I need a list of sequences (tags) lets say 250bp long, and a count number that represents the chip-seq enrichment for the part of the genome (the 250bp region). Further reading, indicates I need to detect/call "peaks" with MACS2/homer to generate a BAM file and ultimately a Fasta file for the sequence lists, but I don't know yet how the 'counts' come in (in what file format and where from). Any hints there would complete the picture I think. Ultimately this is training data for x=250bp sequence to y=count/chip-seq enrichment activity model.
  
  user15793: I have no idea about what you are actually trying to achieve, but getting these browser tracks is simple. First you align your fastq files to a reference genome, e.g. with bowtie2, this returns a SAM file. Sort the SAM file, convert to BAM and sort + index it with samtools. Then use something like bamCoverage from the deeptools suite to get your browser tracks.
  A word of caution. Since you seem to be new to OMICS and bioinformatics in general: NGS data, especially applications that are as noisy as ChIP-seq have lots of pitfalls. Be sure to go through the literature to find references for what you are trying to develop, at least the basic idea and discuss with experienced folks whether it makes sense. It sounds like you want counts of the peak summits, is that correct? In any case, be sure not to reinvent the wheel and to do a meaningful analysis. Discussion with experienced peers is key, that may save you from pitfalls and rookie mistakes. This entire choice of words "sequence axis", "activity level" is very uncommon, I have never heard of this before despite working on NGS data for years, for what it's worth.
  
original_text: 15741: <p>Very new to bioinformatics. I am trying to figure out the steps required to convert a chip-seq fastq file into a genome browser track, with the end goal of being able to access the sequence (x) vs. activity level/count (y) data associated.</p>
  <p>Any genome browser activity/count track data has the following functional format
  <a href="https://i.stack.imgur.com/i3fP4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i3fP4.png" alt="enter image description here" /></a>
  <span class="math-container">$y=F(x)$</span></p>
  <p>Here x is the sequence axis, and y is the activity/count axis. Typically the x(i) is the nucleotide associated with the precise genomic coordinate i (an integer number) depending on the genome used to align (human, mouse, etc.). What I need is a format allowing direct access to the nucleotide representation x(i), associated with the index i, as well as the count levels at y(x(i)). What is the closest data file type that I need? And how do I get to it?</p>
  <p>In other words, what are the steps for a fastq file associated with a chip-seq data to be transformed to this x(i),y(i) format, or best yet if there is an example Python or R code out there that could illustrate the steps of going from file1.fastq to something like to two files <strong>file1_x_sequences</strong> and <strong>file2_y_counts</strong>? I only know the first step is an alignment to a genome, but stuck on the next steps to complete the picture. Thank you.</p>
  <p>Ultimately I need a list of sequences (tags) lets say 250bp long, and a count number that represents the chip-seq enrichment for the part of the genome (the 250bp region). Further reading, indicates I need to detect/call &quot;peaks&quot; with MACS2/homer to generate a BAM file and ultimately a Fasta file for the sequence lists, but I don't know yet how the 'counts' come in (in what file format and where from). Any hints there would complete the picture I think. Ultimately this is training data for x=250bp sequence to y=count/chip-seq enrichment activity model.</p>
   15793: <p>I have no idea about what you are actually trying to achieve, but getting these browser tracks is simple. First you align your fastq files to a reference genome, e.g. with <code>bowtie2</code>, this returns a SAM file. Sort the SAM file, convert to BAM and sort + index it with <code>samtools</code>. Then use something like <code>bamCoverage</code> from the deeptools suite to get your browser tracks.</p>
  <p>A word of caution. Since you seem to be new to OMICS and bioinformatics in general: NGS data, especially applications that are as noisy as ChIP-seq have lots of pitfalls. Be sure to go through the literature to find references for what you are trying to develop, at least the basic idea and discuss with experienced folks whether it makes sense. It sounds like you want counts of the peak summits, is that correct? In any case, be sure not to reinvent the wheel and to do a meaningful analysis. Discussion with experienced peers is key, that may save you from pitfalls and rookie mistakes. This entire choice of words &quot;sequence axis&quot;, &quot;activity level&quot; is very uncommon, I have never heard of this before despite working on NGS data for years, for what it's worth.</p>
  